summaryrefslogtreecommitdiff
path: root/Zend/tests/bug37707.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug37707.phpt')
-rwxr-xr-xZend/tests/bug37707.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/bug37707.phpt b/Zend/tests/bug37707.phpt
new file mode 100755
index 000000000..196495852
--- /dev/null
+++ b/Zend/tests/bug37707.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #37707 (clone without assigning leaks memory)
+--FILE--
+<?php
+class testme {
+ function __clone() {
+ echo "clonned\n";
+ }
+}
+clone new testme();
+echo "NO LEAK\n";
+?>
+--EXPECT--
+clonned
+NO LEAK
+