summaryrefslogtreecommitdiff
path: root/tests/classes/static_properties_undeclared_assignRef.phpt
blob: 680aeaf2e849e31585ba6f325616389068610ba5 (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 Error: Access to undeclared static property: C::$p in %s:4
Stack trace:
#0 {main}
  thrown in %s on line 4