php-src/Zend/tests/bug69767.phpt
2015-12-24 15:19:31 +01:00

9 lines
252 B
PHP

--TEST--
Bug #69767 (Default parameter value with wrong type segfaults)
--FILE--
<?php
function foo(String $bar = 0) {}
?>
--EXPECTF--
Fatal error: Default value for parameters with a string type can only be string or NULL in %sbug69767.php on line %d