diff options
author | foobar <sniper@php.net> | 2004-01-26 04:37:50 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2004-01-26 04:37:50 +0000 |
commit | dbff3d8b974123e96cd620fd902ce44ddb257144 (patch) | |
tree | 8ee8f6108c9affb56d90b85f46ae39221c8cee71 | |
parent | e3c80d52da5b068d97ea03cc3aadf236d442cf18 (diff) | |
download | php-git-dbff3d8b974123e96cd620fd902ce44ddb257144.tar.gz |
test for bug #26900
-rwxr-xr-x | tests/lang/bug26900.phpt | 15 |
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 |