dis-bench / src /php /php-src /ext /bcmath /tests /number /properties_unset.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
402 Bytes
--TEST--
BcMath\Number properties unset
--EXTENSIONS--
bcmath
--FILE--
<?php
$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