1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/Zend/tests/declare_001.phpt
Dmitry Stogov bf05cc7490 Fixed test
2010-11-24 10:54:35 +00:00

23 lines
425 B
PHP

--TEST--
Testing declare statement with several type values
--SKIPIF--
<?php
if (ini_get("zend.multibyte")) {
die("skip Requires zend.multibyte=0");
}
?>
--FILE--
<?php
declare(encoding = 1);
declare(encoding = 1123131232131312321);
declare(encoding = NULL);
declare(encoding = 'utf-8');
declare(encoding = M_PI);
print 'DONE';
?>
--EXPECTF--
Fatal error: Cannot use constants as encoding in %sdeclare_001.php on line 7