#49594 [Bgs]: POSIX regex are important
| From: | beverloo@php.net | Date: | Thu, 01 Oct 2009 15:19:25 +0000 |
| Subject: | #49594 [Bgs]: POSIX regex are important | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143130@lists.php.net to get a copy of this message | ||
ID: 49594
Updated by: beverloo@php.net
Reported By: jay at phpcourses dot ca
Status: Bogus
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 5.3.0
New Comment:
No, you think it's a mistake. In fact, the PCRE library offers more
features, (mostly) better performance and is used in other programming
languages as well (Java, Javascript, .NET). On top of that, it offers
more consistent syntax.
After all, no one is forcing you to upgrade your PHP version. It will
remain available throughout the 5.x versions. Just don't update to PHP 6
if it really is a problem. Either way, you've got more than enough time
to update any scripts or sites.
Previous Comments:
------------------------------------------------------------------------
[2009-10-01 15:16:20] pajoye@php.net
You completely ignore the options you have, that's your rights. There
is no bug, there is no issue > bogus. If you don't know how to use the
error_reporting flags, please read the manual or ask for support in one
of the numerous support channels.
Thanks for your understanding.
------------------------------------------------------------------------
[2009-10-01 15:03:36] jay at phpcourses dot ca
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
------------------------------------------------------------------------
[2009-10-01 14:29:34] pajoye@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().
------------------------------------------------------------------------
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