summaryrefslogtreecommitdiff
path: root/ext/pcre/tests/bug26927.phpt
blob: 5c64deb37c574e4ab880942f7da2dfa012186283 (plain)
1
2
3
4
5
6
7
8
9
10
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(6) "a\000b"