summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/lang/bug26900.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/bug26900.phpt b/tests/lang/bug26900.phpt
new file mode 100755
index 0000000000..4af0df89da
--- /dev/null
+++ b/tests/lang/bug26900.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #26900 (Memory leak when passing arguments to __clone())
+--FILE--
+<?php
+ class foo {
+ function __clone() {}
+ }
+
+ $a = new foo;
+ $b = $a->__clone('bad argument');
+
+ echo "OK\n";
+?>
+--EXPECT--
+OK