summaryrefslogtreecommitdiff
path: root/tests/classes/static_properties_undeclared_assignRef.phpt
blob: 4b011916162508691b31f36dc9bde5bf1b83d576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Assigning a non-existent static property by reference
--FILE--
<?php
Class C {}
$a = 'foo';
C::$p =& $a;
?>
--EXPECTF--
Fatal error: Uncaught exception 'EngineException' with message 'Access to undeclared static property: C::$p' in %s:4
Stack trace:
#0 {main}
  thrown in %s on line 4