diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-07-27 10:44:03 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-07-27 10:44:03 +0000 |
commit | a98e5c674f268c0e3973bc540cf58f9b5c348a5b (patch) | |
tree | 8c6c179331d79b7e6d10a83fe5f7f3279f7c59d9 /Zend/tests/bug38234.phpt | |
parent | 7625313f9c2e62b8b46adaeedbdc247ad3c8c90c (diff) | |
download | php-git-a98e5c674f268c0e3973bc540cf58f9b5c348a5b.tar.gz |
Fixed bug #38234 (Exception in __clone makes memory leak)
Diffstat (limited to 'Zend/tests/bug38234.phpt')
-rwxr-xr-x | Zend/tests/bug38234.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug38234.phpt b/Zend/tests/bug38234.phpt new file mode 100755 index 0000000000..a81a3aadcc --- /dev/null +++ b/Zend/tests/bug38234.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #38234 (Exception in __clone makes memory leak) +--FILE-- +<?php +class Foo { + function __clone() { + throw new Exception(); + } +} +try { + $x = new Foo(); + $y = clone $x; +} catch (Exception $e) { +} +echo "ok\n"; +?> +--EXPECT-- +ok |