Annotation of embedaddon/php/Zend/tests/declare_001.phpt, revision 1.1.1.2

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

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