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