xref: /PHP-8.0/Zend/tests/bug69767.phpt (revision 5dcbc65a)
1--TEST--
2Bug #69767 (Default parameter value with wrong type segfaults)
3--FILE--
4<?php
5function foo(String $bar = 0) {}
6?>
7--EXPECTF--
8Fatal error: Cannot use int as default value for parameter $bar of type string in %s on line %d
9