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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: briantw at briantw dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 10:00:01 2026 UTC