mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
5dcbc65a53
Use shared logic to determine what values are valid, and a single error message format.
9 lines
231 B
PHP
9 lines
231 B
PHP
--TEST--
|
|
Bug #69767 (Default parameter value with wrong type segfaults)
|
|
--FILE--
|
|
<?php
|
|
function foo(String $bar = 0) {}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use int as default value for parameter $bar of type string in %s on line %d
|