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:

ok thank you

it's troublesome for many of us, but unavoidable i guess


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

[2009-10-01 22:03:13] ras...@php.net

We did not write the regex implementation.  We rely on 3rd-party
libraries for everything in PHP.  If a POSIX-compatible library that
supports Unicode magically appears, we can consider it, but as of right
now that does not exist and we are not going to write one.  I doubt any
of the other scripting languages are going to do that either.  Python
and Ruby both rely on PCRE as well, so we all support the same type of
regular expressions.  

The responsible thing for us to do, given the state of regex libraries,
is to let users know that Unicode is the future and their current POSIX
regular expressions is not going to work in this Unicode world and they
need to plan for that.

I am sorry you do not agree with that, but that is the state of things
currently.

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

[2009-10-01 21:59:06] jay at phpcourses dot ca

then make ereg() work with preg_match()

so our code is not garbage

when php6 comes out, millions of servers get upgraded, and millions of
scripts will no longer function.

a mistake

unsubscribe
unsubscribe
unsubscribe
unsubscribe
unsubscribe
unsubscribe

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

[2009-10-01 21:56:09] paj...@php.net

It won't be available in php6 because ereg does not work with Unicode.
Simple. Has PHP6 been released yet? or is it getting anywhere close to
be released? No and no.

And php 5.x still has many years to live, given that you had already
almost a decade to be ready and that you get 5 more years or so using
error_reporting.... EOD.

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

[2009-10-01 21:49:09] jay at phpcourses dot ca

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.

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

[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');"



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

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

Reply via email to