php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65726 PCRE_CASELESS recommended as replacement for deprecated function.
Submitted: 2013-09-20 13:44 UTC Modified: 2013-09-20 20:20 UTC
From: briantw at briantw dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.5.4 OS:
Private report: No CVE-ID: None
 [2013-09-20 13:44 UTC] 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().


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-20 14:12 UTC] 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 14:19 UTC] briantw at briantw dot com
You are correct. I thought it applied to the entire section. Sorry for wasting your time.
 [2013-09-20 20:20 UTC] aharvey@php.net
-Status: Open +Status: Not a bug
 [2013-09-20 20:20 UTC] aharvey@php.net
Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC