Wiccle.com in Facebook Wiccle.com in Twitter Wiccle.com in LinkedIn Wiccle.com in Youtube RSS from Wiccle.com Wiccle.com in Atom
 
 
 

Thread: ereg_replace() is deprecated all over top index page

Started: August 18, 2009, 04:43 PM  ⋅  Zone: Public Forums  ⋅  Category: Install & Modification  ⋅  Posts: 2  ⋅  Views 543
Started by: Technoman  ⋅  Description: No description.
Post #1
Member: Technoman  ⋅  Date: August 18, 2009, 04:43 PM  ⋅ Subject: "ereg_replace() is deprecated all over top index page"

hey finally had some time to install this today well again once I got a look after the install on index page ( home page )

 i saw these ugly script messages on top of the header index page ...

 

Post #2
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);

 

Install & Modification

Add to Favorites
Public Forums
Category  ⋅  Deploying iWiccle and Wiccle into unique solutions that match your needs.
 

Public Forums

Add to Favorites
Public Forums
Zone  ⋅ Public forum sections for support and discussions. Available for everyone.
 

Zone Categories

 
Questions? Ask us!
Back to Top