Annotation of embedaddon/php/ext/pcre/tests/null_bytes.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Zero byte test
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: preg_match("\0//i", "");
        !             7: preg_match("/\0/i", "");
        !             8: preg_match("//\0i", "");
        !             9: preg_match("//i\0", "");
        !            10: preg_match("/\\\0/i", "");
        !            11: 
        !            12: preg_match("\0[]i", "");
        !            13: preg_match("[\0]i", "");
        !            14: preg_match("[]\0i", "");
        !            15: preg_match("[]i\0", "");
        !            16: preg_match("[\\\0]i", "");
        !            17: 
        !            18: preg_replace("/foo/e\0/i", "echo('Eek');", "");
        !            19: 
        !            20: ?>
        !            21: --EXPECTF--
        !            22: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 3
        !            23: 
        !            24: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 4
        !            25: 
        !            26: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 5
        !            27: 
        !            28: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 6
        !            29: 
        !            30: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 7
        !            31: 
        !            32: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 9
        !            33: 
        !            34: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 10
        !            35: 
        !            36: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 11
        !            37: 
        !            38: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 12
        !            39: 
        !            40: Warning: preg_match(): Null byte in regex in %snull_bytes.php on line 13
        !            41: 
        !            42: Warning: preg_replace(): Null byte in regex in %snull_bytes.php on line 15

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