summaryrefslogtreecommitdiff
path: root/tests/classes/static_properties_undeclared_assignRef.phpt
diff options
context:
space:
mode:
authorRobin Fernandes <robinf@php.net>2009-06-17 10:38:24 +0000
committerRobin Fernandes <robinf@php.net>2009-06-17 10:38:24 +0000
commiteb9f2006cc21802d452b51586d7ca4c6956ded27 (patch)
tree872891ac8385a1f23ffda7a2b052b33fb007ba05 /tests/classes/static_properties_undeclared_assignRef.phpt
parentae9ba9cd606d841a6ee4451eab23b6e5072f86fa (diff)
downloadphp-git-eb9f2006cc21802d452b51586d7ca4c6956ded27.tar.gz
Additional class related tests.
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 0000000000..75cf270a9a
--- /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