File size: 290 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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: Cannot use string as default value for parameter $a of type array in %s on line %d