#19430 [NEW]: ereg stops at \0

From: Date: Mon, 16 Sep 2002 09:39:56 +0000
Subject: #19430 [NEW]: ereg stops at \0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19429@lists.php.net to get a copy of this message
From: volker@php.net Operating system: Linux 2.4.x PHP version: 4.2.3 PHP Bug Type: *Regular Expressions Bug description: ereg stops at \0 if you have any \0 in your haystack in ereg, it stops at this point. proof: <? $string="hallo meine homepage ist www.nidura.de"; $string[10]=""; if(ereg("nidura",$string,$match)) echo "found"; else echo "not found"; ?> -- Edit bug report at http://bugs.php.net/?id=19430&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19430&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19430&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19430&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19430&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19430&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19430&r=support Expected behavior: http://bugs.php.net/fix.php?id=19430&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19430&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19430&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19430&r=globals

« previous php.bugs (#19429) next »