summaryrefslogtreecommitdiff
path: root/tests/classes/static_properties_undeclared_assignRef.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/static_properties_undeclared_assignRef.phpt')
-rw-r--r--tests/classes/static_properties_undeclared_assignRef.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/classes/static_properties_undeclared_assignRef.phpt b/tests/classes/static_properties_undeclared_assignRef.phpt
new file mode 100644
index 0000000..75cf270
--- /dev/null
+++ b/tests/classes/static_properties_undeclared_assignRef.phpt
@@ -0,0 +1,10 @@
+--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 \ No newline at end of file