xref: /PHP-8.2/ext/pcre/tests/bug26927.phpt (revision f8d79582)
1--TEST--
2Bug #26927 (preg_quote() does not escape \0)
3--FILE--
4<?php
5    $str = "a\000b";
6    $str_quoted = preg_quote($str);
7    var_dump(preg_match("!{$str_quoted}!", $str), $str_quoted);
8?>
9--EXPECT--
10int(1)
11string(6) "a\000b"
12