Download src/php/php-src/ext/bcmath/tests/number/properties_unset.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/number/properties_unset.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/bcmath/tests/number/properties_unset.phpt
-
curl -L -o properties_unset.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/bcmath/tests/number/properties_unset.phpt
402 Bytes
| --TEST-- | |
| BcMath\Number properties unset | |
| --EXTENSIONS-- | |
| bcmath | |
| --FILE-- | |
| $num = new BcMath\Number(1); | |
| try { | |
| unset($num->value); | |
| } catch (Error $e) { | |
| echo $e->getMessage() . "\n"; | |
| } | |
| try { | |
| unset($num->scale); | |
| } catch (Error $e) { | |
| echo $e->getMessage() . "\n"; | |
| } | |
| --EXPECT-- | |
| Cannot unset readonly property BcMath\Number::$value | |
| Cannot unset readonly property BcMath\Number::$scale | |