1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/pcre/tests/bug26927.phpt
Dmitry Stogov 089f1283ad Fixed test file
2006-02-20 08:39:06 +00:00

12 lines
222 B
PHP

--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(6) "a\000b"