mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
9 lines
252 B
PHP
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
|