Annotation of embedaddon/php/ext/pcre/tests/bug26927.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #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--
                     10: int(1)
                     11: string(6) "a\000b"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>