summaryrefslogtreecommitdiff
path: root/tests/classes/static_properties_undeclared_assignRef.phpt
blob: 97135ceb80f59b8f76454ccfedaed758efd330f3 (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:%d
Stack trace:
#0 {main}
  thrown in %s on line 4