mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
05166566db
Also add a test for bwoebi's last change.
21 lines
427 B
PHP
21 lines
427 B
PHP
--TEST--
|
|
Testing declare statement with several type values
|
|
--INI--
|
|
zend.multibyte=1
|
|
--FILE--
|
|
<?php
|
|
|
|
declare(encoding = 1);
|
|
declare(encoding = 1123131232131312321);
|
|
declare(encoding = M_PI);
|
|
|
|
print 'DONE';
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Unsupported encoding [%d] in %sdeclare_004.php on line 3
|
|
|
|
Warning: Unsupported encoding [%f] in %sdeclare_004.php on line 4
|
|
|
|
Fatal error: Encoding must be a literal in %sdeclare_004.php on line 5
|