php-src/tests/classes/static_properties_undeclared_assignRef.phpt
2009-06-17 10:38:25 +00:00

10 lines
201 B
PHP

--TEST--
Assigning a non-existent static property by reference
--FILE--
<?php
Class C {}
$a = 'foo';
C::$p =& $a;
?>
--EXPECTF--
Fatal error: Access to undeclared static property: C::$p in %s on line 4