|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19430 ereg stops at \0
Submitted: 2002-09-16 04:39 UTC Modified: 2002-09-16 09:36 UTC
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Assigned:
Status: Not a bug Package: *Regular Expressions
PHP Version: 4.2.3 OS: Linux 2.4.x
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 - 29 = ?
Subscribe to this entry?

 [2002-09-16 04:39 UTC]
if you have any \0 in your haystack in ereg, it stops at this point.


$string="hallo meine homepage ist";
	echo "found";
	echo "not found";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-16 09:36 UTC]
As stated in the manual, the ereg_* functions are not binary safe. Use the preg_* functions.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 09 08:05:52 2022 UTC