Annotation of embedaddon/php/Zend/tests/declare_003.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing declare statement with several type values
! 3: --INI--
! 4: precision=15
! 5: zend.multibyte=1
! 6: --FILE--
! 7: <?php
! 8:
! 9: declare(encoding = 1);
! 10: declare(encoding = 11111111111111);
! 11: declare(encoding = NULL);
! 12: declare(encoding = M_PI);
! 13:
! 14: print 'DONE';
! 15:
! 16: ?>
! 17: --EXPECTF--
! 18: Warning: Unsupported encoding [1] in %sdeclare_003.php on line %d
! 19:
! 20: Warning: Unsupported encoding [11111111111111] in %sdeclare_003.php on line %d
! 21:
! 22: Warning: Unsupported encoding [] in %sdeclare_003.php on line %d
! 23:
! 24: Fatal error: Cannot use constants as encoding in %sdeclare_003.php on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>