From: Dmitry Stogov Date: Wed, 13 Sep 2006 13:25:50 +0000 (+0000) Subject: Fix memory leaks X-Git-Tag: php-5.2.0RC4~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b2fa0ce820a8384ec18de7e42e028a139b56f98;p=php Fix memory leaks --- diff --git a/ext/json/tests/003.phpt b/ext/json/tests/003.phpt index 6ae92bbebd..f10baa9d12 100644 --- a/ext/json/tests/003.phpt +++ b/ext/json/tests/003.phpt @@ -11,6 +11,9 @@ $a[] = &$a; var_dump($a); var_dump(json_encode($a)); +/* Break circular data structure to prevent memory leaks */ +unset($a[0]); + echo "Done\n"; ?> --EXPECTF--