mirror of
https://github.com/php/php-src.git
synced 2024-10-22 16:57:05 +00:00
12 lines
220 B
PHP
12 lines
220 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(4) "a\0b"
|