ID: 16590 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: PCRE related Operating System: Linux PHP Version: 4.1.2 New Comment:
Actually, I'm not sure whether this problem can be solved as it is PCRE and not a PHP specific (and it can't be solved without breaking compatibilty with languages using 0 terminated strings such as C). I'm thinking about making it a documentation problem. What do you guys think? -daniel Previous Comments: ------------------------------------------------------------------------ [2002-04-13 13:06:44] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=16590&edit=1