Doc #65726 [Opn]: PCRE_CASELESS recommended as replacement for deprecated function.
| From: | briantw at briantw dot com | Date: | Fri, 20 Sep 2013 14:19:53 +0000 |
| Subject: | Doc #65726 [Opn]: PCRE_CASELESS recommended as replacement for deprecated function. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10284@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65726&edit=1
ID: 65726
User updated by: briantw at briantw dot com
Reported by: briantw at briantw dot com
Summary: PCRE_CASELESS recommended as replacement for
deprecated function.
Status: Open
Type: Documentation Problem
Package: *General Issues
PHP Version: 5.5.4
Block user comment: N
Private report: N
New Comment:
You are correct. I thought it applied to the entire section. Sorry for wasting your time.
Previous Comments:
------------------------------------------------------------------------
[2013-09-20 14:12:42] gabri dot ns at gmail dot com
> However, elsewhere in the documentation, the PCRE_CASELESS is also
> described as deprecated.
where did you read this?
from http://www.php.net/reference.pcre.pattern.modifiers
the only
deprecated modifier is PREG_REPLACE_EVAL, for security reason.
------------------------------------------------------------------------
[2013-09-20 13:44:28] briantw at briantw dot com
Description:
------------
---
From manual page: http://www.php.net/function.eregi#refsect1-function.eregi-notes
---
Page says eregi() is deprecated and to use preg_match() with PCRE_CASELESS modifier. However,
elsewhere in the documentation, the PCRE_CASELESS is also described as deprecated. So, I still
don't know what I should use to replace eregi().
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65726&edit=1