php-src/Zend/tests/real_cast.phpt
Nikita Popov 4565a7f269 Fix assertion when (real) is used
And bring back a test for it...
2020-03-16 18:37:01 +01:00

11 lines
185 B
PHP

--TEST--
The (real) cast is no longer supported
--FILE--
<?php
var_dump((real) 42);
?>
--EXPECTF--
Parse error: The (real) cast has been removed, use (float) instead in %s on line %d