Download src/php/php-src/ext/gmp/tests/comparison_invalid.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gmp/tests/comparison_invalid.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gmp/tests/comparison_invalid.phpt
-
curl -L -o comparison_invalid.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gmp/tests/comparison_invalid.phpt
461 Bytes
| --TEST-- | |
| Invalid comparison with a GMP object | |
| --EXTENSIONS-- | |
| gmp | |
| --FILE-- | |
| try { | |
| var_dump("hapfegfbu" > gmp_init(0)); | |
| } catch (\Error $e) { | |
| echo $e::class, ': ', $e->getMessage(), \PHP_EOL; | |
| } | |
| try { | |
| var_dump((new DateTime()) > gmp_init(0)); | |
| } catch (\Error $e) { | |
| echo $e::class, ': ', $e->getMessage(), \PHP_EOL; | |
| } | |
| --EXPECT-- | |
| ValueError: Number is not an integer string | |
| TypeError: Number must be of type GMP|string|int, DateTime given | |