php-src/Zend/tests/ns_073.phpt
Stanislav Malyshev 1b4134c07b Namespace resolution streamlining patch
[DOC] new resolution rules should be documented soon
2008-11-11 19:45:29 +00:00

20 lines
232 B
PHP

--TEST--
Testing type-hinted lambda parameter inside namespace
--FILE--
<?php
namespace foo;
$x = function (\stdclass $x = NULL) {
var_dump($x);
};
$x(NULL);
$x(new \stdclass);
?>
--EXPECTF--
NULL
object(stdClass)#%d (0) {
}