A workaround was described here: PHP function as parameter default
But I was wondering why this doesn't work:
class Foo extends Bar {
function __construct($paramsIn=array("timestamp"=>time()-7200,"api-key"=>"blah"),
$urlIn="http://www.example.com/rest")
{ //...etcetc
}
I get the error:
Parse error: syntax error, unexpected '(', expecting ')' in filename.php
It's specifically related to the time() call.