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've missed the point entirely

unlike C and Java etc

php has gone the route of "most of your old scripts will no longer work
when you upgrade php"

it's a mistake

there is no point in trying to defend it, it's a known mistake that's
made many of us upset

for example, i teach php at a university and at a college, in addition
to being a contractor and developing my own sites such as
torqueinvoicing.com and we all know it's a mistake


Previous Comments:
------------------------------------------------------------------------

[2009-10-01 14:29:34] paj...@php.net

The api is still usable as it is emulated by pcre. If you really like
to use it for the rest of your life, disable the deprecated warnings and
be done with that.

------------------------------------------------------------------------

[2009-10-01 14:25:16] jay at phpcourses dot ca

recommended?

simply not true

all it ever says is "Note: preg_match(), which uses a Perl-compatible
regular expression syntax, is often a faster alternative to ereg(). "

plus, posix regex have a life of their own, independent of php

at my engineering firm we use posix regex exclusively

php is making a mistake abandoning parts of its api.

a mistake.

------------------------------------------------------------------------

[2009-10-01 04:44:08] a at b dot c dot de

For the past eight years PHP has recommended using the PCRE regex
functions. This has been noted on, for example, the manual page for
ereg().

------------------------------------------------------------------------

[2009-09-18 19:53:09] jay at phpcourses dot ca

Description:
------------
why is PHP deprecating the pervasive, very important POSIX regex
support? nearly every script i have ever written and/or taught in the
past 8 years uses posix regex, and now it will ALL be useless? my
customers will be disappointed and their code won't work. just LEAVE THE
POSIX REGEX ALONE.

Reproduce code:
---------------
ereg('posix')

Expected result:
----------------
success

Actual result:
--------------
the single worst mistake php has ever made


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49594&edit=1

Reply via email to