|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-13 04:51 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
Description: ------------ See below. A possible fix will be: Index: ext/http/http_message_object.c =================================================================== RCS file: /repository/pecl/http/http_message_object.c,v retrieving revision 1.119 diff -u -p -r1.119 http_message_object.c --- ext/http/http_message_object.c 24 Sep 2008 11:30:39 -0000 1.119 +++ ext/http/http_message_object.c 4 Jan 2009 15:15:13 -0000 @@ -1473,7 +1473,6 @@ PHP_METHOD(HttpMessage, rewind) if (obj->iterator) { zval_ptr_dtor(&obj->iterator); } - ZVAL_ADDREF(getThis()); obj->iterator = getThis(); } } Reproduce code: --------------- $x = new httpmessage; $x->rewind(); Expected result: ---------------- Nothing. Actual result: -------------- [Sun Jan 4 12:58:14 2009] Script: '-' /home/felipe/dev/php5/Zend/zend_vm_execute.h(476) : Freeing 0x08CCD1B8 (20 bytes), script=- === Total 1 memory leaks detected ===