php-src/Zend/tests/declare_001.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

24 lines
486 B
PHP

--TEST--
Testing declare statement with several type values
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=1
--FILE--
<?php
declare(encoding = 1);
declare(encoding = 112313123213131232100);
declare(encoding = 'utf-8');
declare(encoding = M_PI);
print 'DONE';
?>
--EXPECTF--
Warning: Unsupported encoding [1] in %sdeclare_001.php on line %d
Warning: Unsupported encoding [1.1231312321313E+20] in %sdeclare_001.php on line %d
Fatal error: Encoding must be a literal in %s on line %d