summaryrefslogtreecommitdiff
path: root/Zend/tests/037.phpt
blob: bda491d7e61ddee5a3b6f6b370a7d6ca01989ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Trying to access inexistent static property of Closure
--FILE--
<?php

namespace closure;

class closure { static $x = 1;}

$x = __NAMESPACE__;
var_dump(closure::$x);

var_dump($x::$x);

?>
--EXPECTF--
int(1)

Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: Closure::$x' in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d