dis-bench / src /php /php-src /Zend /tests /declare /bug69092.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
318 Bytes
--TEST--
Bug #69092 (Declare Encoding Compile Check Wrong)
--EXTENSIONS--
mbstring
--INI--
zend.multibyte=On
--FILE--
<?php
echo "Hi";
function foo() {
declare(encoding="utf-8");
}
echo "Bye"
?>
--EXPECTF--
Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line %d