summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_073.phpt
blob: bb03308d71b5d821a5b58919308266bcdb93fe76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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) {
}