PHP – DanDev.com http://www.dandev.com Tidbits about software development Sun, 08 Mar 2009 02:16:01 +0000 en-US hourly 1 Fatal error: Cannot redeclare pclziputilpathreduction() http://www.dandev.com/2009/01/cannon-redeclare-pclziputilpathreduction/ http://www.dandev.com/2009/01/cannon-redeclare-pclziputilpathreduction/#comments Sun, 25 Jan 2009 14:39:23 +0000 http://www.dandev.com/?p=104 I’ve seen this in a couple of places already, so I’ll go ahead an post it: If you’re getting an error with your WordPress install similar to: “Fatal error: Cannot […]

The post Fatal error: Cannot redeclare pclziputilpathreduction() appeared first on DanDev.com.

]]>
I’ve seen this in a couple of places already, so I’ll go ahead an post it: If you’re getting an error with your WordPress install similar to: “Fatal error: Cannot redeclare pclziputilpathreduction()” and you’re using WP 2.7+, disable your WPAU – WordPress Automatic Upgrade plugin. This error is caused because in version 2.7 WordPress added the ability to update itself, so this plugin is no longer needed. Here is an image of what the deactivated plugin should look like on the plugins page:
wpau-deactivated

Update: This appears to be fixed in the latest version of the plugin. I was able to enable the plugin and browse around without getting errors. But I don’t see the need for this plugin in WP installs newer than 2.6 anyway.

The post Fatal error: Cannot redeclare pclziputilpathreduction() appeared first on DanDev.com.

]]>
http://www.dandev.com/2009/01/cannon-redeclare-pclziputilpathreduction/feed/ 6
PHP 5.3alpha http://www.dandev.com/2008/09/php-53alpha/ http://www.dandev.com/2008/09/php-53alpha/#respond Mon, 22 Sep 2008 01:56:02 +0000 http://www.dandev.com/?p=70 The next minor version of PHP5(5.3; currently in the alpha stage) will include support for NOWDOC, Lambda functions & Closures, and the much anticipated ternary shortcut(?:). NOWDOCs are basically HEREDOCs, […]

The post PHP 5.3alpha appeared first on DanDev.com.

]]>
The next minor version of PHP5(5.3; currently in the alpha stage) will include support for NOWDOC, Lambda functions & Closures, and the much anticipated ternary shortcut(?:). NOWDOCs are basically HEREDOCs, but without interpolation. It’s like using single-quotes versus double-quotes in your strings. Lambda functions allow you to define a single-use function so that it doesn’t have to be defined in the global scope of the script throughout execution. You can exectute things like loops or callbacks without having to define the function ahead of time, and you can return the value of your loops or callbacks to a variable directly. The Ternary shortcut is to allow you to perform a quick if() & return the result, which is what the Ternary operator(s) does already, but you don’t have to specify an “else” value. Most(all?) of these features were discussed for inclusion in PHP6, but it looks like they’ve been backported, which is good. 🙂

Also included will be “limited GOTO” which, as I understand it, will entail using the break language construct to jump to a certain position in the script. The information that I’ve seen is minimal, but this feature could be useful to a lot of people as well.

The post PHP 5.3alpha appeared first on DanDev.com.

]]>
http://www.dandev.com/2008/09/php-53alpha/feed/ 0