php-src/Zend/tests/errmsg_013.phpt
2015-12-24 15:19:31 +01:00

15 lines
293 B
PHP

--TEST--
errmsg: default value for parameters with array type can only be an array or NULL
--FILE--
<?php
class test {
function foo(array $a = "s") {
}
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Default value for parameters with array type can only be an array or NULL in %s on line %d