diff options
-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 |