mirror of
https://github.com/php/php-src.git
synced 2024-12-25 09:49:08 +08:00
18 lines
421 B
Plaintext
18 lines
421 B
Plaintext
|
--TEST--
|
||
|
Bug #69092-2 (Declare Encoding Compile Check Wrong) - multibyte off
|
||
|
--INI--
|
||
|
zend.multibyte=0
|
||
|
--FILE--
|
||
|
<?php
|
||
|
echo "Hi";
|
||
|
|
||
|
function foo() {
|
||
|
declare(encoding="UTF-8");
|
||
|
}
|
||
|
|
||
|
echo "Bye"
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Warning: declare(encoding=...) ignored because Zend multibyte feature is turned off by settings in %s on line %d
|
||
|
|
||
|
Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line %d
|