summaryrefslogtreecommitdiff
path: root/Zend/tests/bug52484.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug52484.phpt')
-rw-r--r--Zend/tests/bug52484.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/bug52484.phpt b/Zend/tests/bug52484.phpt
new file mode 100644
index 000000000..ccdf858f6
--- /dev/null
+++ b/Zend/tests/bug52484.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Bug #52484 (__set() ignores setting properties with empty names)
+--FILE--
+<?php
+
+class A {
+ function __unset($prop) {
+ unset($this->$prop);
+ }
+}
+
+$a = new A();
+$prop = null;
+
+unset($a->$prop);
+
+?>
+--EXPECTF--
+Fatal error: Cannot access empty property in %s on line %d