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