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

1.1     ! misho       1: --TEST--
        !             2: Delimiters crash test
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: var_dump(preg_match('', ''));
        !             7: var_dump(preg_match('      ', ''));
        !             8: var_dump(preg_match('@@', ''));
        !             9: var_dump(preg_match('12', ''));
        !            10: var_dump(preg_match('<>', ''));
        !            11: var_dump(preg_match('~a', ''));
        !            12: var_dump(preg_match('@\@\@@', '@@'));
        !            13: var_dump(preg_match('//z', '@@'));
        !            14: var_dump(preg_match('{', ''));
        !            15: 
        !            16: ?>
        !            17: --EXPECTF--
        !            18: Warning: preg_match(): Empty regular expression in %sdelimiters.php on line 3
        !            19: bool(false)
        !            20: 
        !            21: Warning: preg_match(): Empty regular expression in %sdelimiters.php on line 4
        !            22: bool(false)
        !            23: int(1)
        !            24: 
        !            25: Warning: preg_match(): Delimiter must not be alphanumeric or backslash in %sdelimiters.php on line 6
        !            26: bool(false)
        !            27: int(1)
        !            28: 
        !            29: Warning: preg_match(): No ending delimiter '~' found in %sdelimiters.php on line 8
        !            30: bool(false)
        !            31: int(1)
        !            32: 
        !            33: Warning: preg_match(): Unknown modifier 'z' in %sdelimiters.php on line 10
        !            34: bool(false)
        !            35: 
        !            36: Warning: preg_match(): No ending matching delimiter '}' found in %sdelimiters.php on line 11
        !            37: bool(false)

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