summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2004-01-26 04:37:50 +0000
committerfoobar <sniper@php.net>2004-01-26 04:37:50 +0000
commitdbff3d8b974123e96cd620fd902ce44ddb257144 (patch)
tree8ee8f6108c9affb56d90b85f46ae39221c8cee71
parente3c80d52da5b068d97ea03cc3aadf236d442cf18 (diff)
downloadphp-git-dbff3d8b974123e96cd620fd902ce44ddb257144.tar.gz
test for bug #26900
-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