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

1.1     ! misho       1: --TEST--
        !             2: Test for pre-defined pcre constants 
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: echo "PCRE constants test\n"; 
        !             7: 
        !             8: echo "PREG_PATTERN_ORDER= ", PREG_PATTERN_ORDER, "\n";
        !             9: echo "PREG_OFFSET_CAPTURE= ", PREG_OFFSET_CAPTURE, "\n";
        !            10: echo "PREG_SPLIT_NO_EMPTY= ", PREG_SPLIT_NO_EMPTY, "\n"; 
        !            11: echo "PREG_SPLIT_DELIM_CAPTURE= ", PREG_SPLIT_DELIM_CAPTURE, "\n";
        !            12: echo "PREG_SPLIT_OFFSET_CAPTURE= ", PREG_SPLIT_OFFSET_CAPTURE, "\n";
        !            13: echo "PREG_GREP_INVERT= ", PREG_GREP_INVERT, "\n";
        !            14: echo "PREG_NO_ERROR= ", PREG_NO_ERROR, "\n";
        !            15: echo "PREG_INTERNAL_ERROR= ", PREG_INTERNAL_ERROR, "\n";
        !            16: echo "PREG_BACKTRACK_LIMIT_ERROR= ", PREG_BACKTRACK_LIMIT_ERROR, "\n";
        !            17: echo "PREG_RECURSION_LIMIT_ERROR= ", PREG_RECURSION_LIMIT_ERROR, "\n";
        !            18: echo "PREG_BAD_UTF8_ERROR= ", PREG_BAD_UTF8_ERROR, "\n";
        !            19: 
        !            20: ?>
        !            21: ===Done===
        !            22: --EXPECT--
        !            23: PCRE constants test
        !            24: PREG_PATTERN_ORDER= 1
        !            25: PREG_OFFSET_CAPTURE= 256
        !            26: PREG_SPLIT_NO_EMPTY= 1
        !            27: PREG_SPLIT_DELIM_CAPTURE= 2
        !            28: PREG_SPLIT_OFFSET_CAPTURE= 4
        !            29: PREG_GREP_INVERT= 1
        !            30: PREG_NO_ERROR= 0
        !            31: PREG_INTERNAL_ERROR= 1
        !            32: PREG_BACKTRACK_LIMIT_ERROR= 2
        !            33: PREG_RECURSION_LIMIT_ERROR= 3
        !            34: PREG_BAD_UTF8_ERROR= 4
        !            35: ===Done===

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