Member:
Markus ⋅
Date: August 18, 2009, 06:03 PM
⋅ Subject: "(No title)"
I'm still on 5.2.8 myself --- PHP 5.3.0 was released just a month and a half ago. I do see, now that you mention, that ereg_replace is listed as deprecated from 5.3.0 and removed from 6.0.0 --- what a pity. I'll update the affected regex'es in the next version to use preg_replace, then.
Deprecated means that support for this function will end in the future — whenever PHP 6.0 comes around, that is --- earliest mid-next year, if my compass works at all. It is currently fully supported.
I intentionally don't constantly update to the latest --- because used technologies don't change that fast, and I want to keep myself synchronized with the available environments to make sure we don't end up in a dependency-upgrade-requirement-hell. In practice, very few production servers run the latest versions.
On a production site, you should always keep notices (and the new deprecated notices introduced in PHP 5.3.0) turned off. They should only be on if you are developing or debugging. I see you're testing on localhost and may want to keep them on for other purposes ---- then stick this to the beginning of the index.php file to turn them off:
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);