Download src/php/php-src/Zend/tests/declare/bug69092.2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/declare/bug69092.2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/declare/bug69092.2.phpt
-
curl -L -o bug69092.2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/declare/bug69092.2.phpt
425 Bytes
| --TEST-- | |
| Bug #69092-2 (Declare Encoding Compile Check Wrong) - multibyte off | |
| --INI-- | |
| zend.multibyte=0 | |
| --FILE-- | |
| 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 | |