summaryrefslogtreecommitdiff
path: root/Zend/tests/magic_by_ref_005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/magic_by_ref_005.phpt')
-rw-r--r--Zend/tests/magic_by_ref_005.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/magic_by_ref_005.phpt b/Zend/tests/magic_by_ref_005.phpt
new file mode 100644
index 0000000..513c061
--- /dev/null
+++ b/Zend/tests/magic_by_ref_005.phpt
@@ -0,0 +1,18 @@
+--TEST--
+passing parameter of __isset() by ref
+--FILE--
+<?php
+
+class test {
+ function __isset(&$name) { }
+}
+
+$t = new test;
+$name = "prop";
+
+var_dump(isset($t->$name));
+
+echo "Done\n";
+?>
+--EXPECTF--
+Fatal error: Method test::__isset() cannot take arguments by reference in %s on line %d