Download src/php/php-src/Zend/tests/assert/expect_017.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/expect_017.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/assert/expect_017.phpt
-
curl -L -o expect_017.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/expect_017.phpt
493 Bytes
| --TEST-- | |
| test enable/disable assertions at runtime (assertions completely disabled) | |
| --INI-- | |
| zend.assertions=-1 | |
| --FILE-- | |
| <?php | |
| ini_set("zend.assertions", 0); | |
| var_dump(assert(false)); | |
| var_dump(assert(true)); | |
| ini_set("zend.assertions", 1); | |
| ?> | |
| --EXPECTF-- | |
| Warning: zend.assertions may be completely enabled or disabled only in php.ini in %sexpect_017.php on line 2 | |
| bool(true) | |
| bool(true) | |
| Warning: zend.assertions may be completely enabled or disabled only in php.ini in %sexpect_017.php on line 5 | |