php-src/tests/classes/static_properties_undeclared_assign.phpt

13 lines
234 B
PHP

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