1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-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