xref: /php-src/Zend/tests/bug69092.phpt (revision 74859783)
1--TEST--
2Bug #69092 (Declare Encoding Compile Check Wrong)
3--EXTENSIONS--
4mbstring
5--INI--
6zend.multibyte=On
7--FILE--
8<?php
9echo "Hi";
10
11function foo() {
12    declare(encoding="utf-8");
13}
14
15echo "Bye"
16?>
17--EXPECTF--
18Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line %d
19