Annotation of embedaddon/php/Zend/tests/declare_002.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Testing declare statement with several type values
        !             3: --SKIPIF--
        !             4: <?php
        !             5: if (!ini_get("zend.multibyte")) {
        !             6:   die("skip Requires zend.multibyte=1");
        !             7: }
        !             8: if (!extension_loaded("mbstring")) {
        !             9:   die("skip Requires ext/mbstring");
        !            10: }
        !            11: ?>
        !            12: --FILE--
        !            13: <?php
        !            14: 
        !            15: declare(encoding = 1);
        !            16: declare(encoding = 1123131232131312321);
        !            17: declare(encoding = NULL);
        !            18: declare(encoding = 'utf-8');
        !            19: declare(encoding = M_PI);
        !            20: 
        !            21: print 'DONE';
        !            22: 
        !            23: ?>
        !            24: --EXPECTF--
        !            25: Warning: Unsupported encoding [%d] in %sdeclare_002.php on line 3
        !            26: 
        !            27: Warning: Unsupported encoding [%f] in %sdeclare_002.php on line 4
        !            28: 
        !            29: Warning: Unsupported encoding [] in %sdeclare_002.php on line 5
        !            30: 
        !            31: Fatal error: Cannot use constants as encoding in %sdeclare_002.php on line 7

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