]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Fri, 16 Jan 2004 02:29:51 +0000 (02:29 +0000)
committerSVN Migration <svn@php.net>
Fri, 16 Jan 2004 02:29:51 +0000 (02:29 +0000)
ext/pcre/tests/bug26927.phpt [new file with mode: 0644]

diff --git a/ext/pcre/tests/bug26927.phpt b/ext/pcre/tests/bug26927.phpt
new file mode 100644 (file)
index 0000000..25b6b2e
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+Bug #26927 (preg_quote() does not escape \0) 
+--FILE--
+<?php
+       $str = "a\000b";
+       $str_quoted = preg_quote($str);
+       var_dump(preg_match("!{$str_quoted}!", $str), $str_quoted);
+?>
+--EXPECT--
+int(1)
+string(4) "a\0b"