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

9 lines
177 B
PHP

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