dis-bench / src /php /php-src /ext /bcmath /tests /number /cast_warning.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
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