mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
9 lines
257 B
Plaintext
9 lines
257 B
Plaintext
|
--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 hint can only be string or NULL in %sbug69767.php on line %d
|