Download src/php/php-src/ext/bcmath/tests/number/cast_warning.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/number/cast_warning.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bcmath/tests/number/cast_warning.phpt
-
curl -L -o cast_warning.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/number/cast_warning.phpt
296 Bytes
| --TEST-- | |
| BcMath\Number cast warning | |
| --EXTENSIONS-- | |
| bcmath | |
| --FILE-- | |
| <?php | |
| $num = new BcMath\Number(1); | |
| (int) $num; | |
| (float) $num; | |
| ?> | |
| --EXPECTF-- | |
| Warning: Object of class BcMath\Number could not be converted to int in %s | |
| Warning: Object of class BcMath\Number could not be converted to float in %s | |