]> granicus.if.org Git - php/commitdiff
test for bug #26900
authorfoobar <sniper@php.net>
Mon, 26 Jan 2004 04:37:50 +0000 (04:37 +0000)
committerfoobar <sniper@php.net>
Mon, 26 Jan 2004 04:37:50 +0000 (04:37 +0000)
tests/lang/bug26900.phpt [new file with mode: 0755]

diff --git a/tests/lang/bug26900.phpt b/tests/lang/bug26900.phpt
new file mode 100755 (executable)
index 0000000..4af0df8
--- /dev/null
@@ -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