Download src/php/php-src/Zend/tests/assert/bug71922.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/bug71922.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/assert/bug71922.phpt
-
curl -L -o bug71922.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/bug71922.phpt
383 Bytes
| --TEST-- | |
| Bug #71922: Crash on assert(new class{}); | |
| --INI-- | |
| zend.assertions=1 | |
| assert.exception=1 | |
| --FILE-- | |
| <?php | |
| try { | |
| assert(0 && new class { | |
| } && new class(42) extends stdclass { | |
| }); | |
| } catch (AssertionError $e) { | |
| echo "Assertion failure: ", $e->getMessage(), "\n"; | |
| } | |
| ?> | |
| --EXPECT-- | |
| Assertion failure: assert(0 && new class { | |
| } && new class(42) extends stdclass { | |
| }) | |