summaryrefslogtreecommitdiff
path: root/Zend/tests/bug69767.phpt
blob: 095bfd89d5eb415c5cb2272dfa1853f158866dd2 (plain)
1
2
3
4
5
6
7
8
--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