ID: 49594 User updated by: jay at phpcourses dot ca Reported By: jay at phpcourses dot ca Status: Bogus Bug Type: Feature/Change Request Operating System: all PHP Version: 5.3.0 New Comment:
you first This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged. Previous Comments: ------------------------------------------------------------------------ [2009-10-01 21:30:13] paj...@php.net Can you please do your homework prior to post to php.net's bug reports? Using PHP 5.3.0/svn: > php -r "error_reporting(E_ALL); ereg('POSIX');" Deprecated: Function ereg() is deprecated in Command line code on line 1 > php -r "error_reporting(E_ALL ^ E_DEPRECATED); ereg('POSIX', 'foo');" ------------------------------------------------------------------------ [2009-10-01 21:25:53] jay at phpcourses dot ca nobody answered the original query WHY stop supporting parts of the api all of a sudden? it does NO harm leaving it in, as in ZERO it DOES harm taking it out ------------------------------------------------------------------------ [2009-10-01 21:25:03] jay at phpcourses dot ca i can't see, "marked for deprecation" is different than "will no longer be supported in 5.3" i'm helping php avoid big mistakes ------------------------------------------------------------------------ [2009-10-01 18:08:49] paj...@php.net Jay, disable E_DEPRECATED and be happy. Now go back to your usual activities, thanks. ------------------------------------------------------------------------ [2009-10-01 17:48:58] jay at phpcourses dot ca i need to talk to someone more senior/experienced i write 5000 - 10000 php scripts a year, most of which use posix regex and i don't need a junior telling me "we are not forcing you to upgrade to php 5.3; keep 5.2 forever" only a newbie would say that my clients' scripts are on 1000s of servers around the world php could also remove support for the pow() function, since there are alternative ways of raising numbers to powers, but like the ereg() support, they'd f*ck millions of developer worldwide in short: keep ereg() == no problems scrap ereg() == problems so why scrap API support? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/49594 -- Edit this bug report at http://bugs.php.net/?id=49594&edit=1