Annotation of embedaddon/php/Zend/tests/declare_004.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: ?>
        !             9: --FILE--
        !            10: <?php
        !            11: 
        !            12: declare(encoding = 1);
        !            13: declare(encoding = 1123131232131312321);
        !            14: declare(encoding = NULL);
        !            15: declare(encoding = M_PI);
        !            16: 
        !            17: print 'DONE';
        !            18: 
        !            19: ?>
        !            20: --EXPECTF--
        !            21: Warning: Unsupported encoding [%d] in %sdeclare_004.php on line 3
        !            22: 
        !            23: Warning: Unsupported encoding [%f] in %sdeclare_004.php on line 4
        !            24: 
        !            25: Warning: Unsupported encoding [] in %sdeclare_004.php on line 5
        !            26: 
        !            27: Fatal error: Cannot use constants as encoding in %sdeclare_004.php on line 6

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