Bug #16590: Problems with strings containing \x00
| From: | daniel at lorch dot cc | Date: | Sat, 13 Apr 2002 17:06:45 +0000 |
| Subject: | Bug #16590: Problems with strings containing \x00 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4894@lists.php.net to get a copy of this message | ||
From: daniel@lorch.cc
Operating system: Linux
PHP version: 4.1.2
PHP Bug Type: PCRE related
Bug description: Problems with strings containing \x00
The PCRE has problems with strings containing 0x00. It stops reading as if
the strings were \0 terminated. This affects all preg_* functions.
Examples:
preg_match("/\x00/", "foo");
preg_match("/" . chr(0) . "/", "foo");
Raises the error "Warning: No ending delimiter '/' found"
--
Edit bug report at http://bugs.php.net/?id=16590&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16590&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16590&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16590&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16590&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16590&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16590&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16590&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16590&r=submittedtwice