1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 22:52:40 +02: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