Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5731 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58166 invoked by uid 1010); 26 Nov 2003 22:31:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 58127 invoked from network); 26 Nov 2003 22:31:53 -0000 Received: from unknown (HELO localhost.localdomain) (207.77.113.21) by pb1.pair.com with SMTP; 26 Nov 2003 22:31:53 -0000 Received: from neutron (neutron.ushmm.org [207.77.113.18]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id hAQNUwN00323 for ; Wed, 26 Nov 2003 18:30:58 -0500 Date: Wed, 26 Nov 2003 17:32:48 -0500 (EST) X-X-Sender: rtwitty@neutron To: internals@lists.php.net Message-ID: Approved: rtwitty@ushmm.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Concern about changing zval's passed by reference From: rtwitty@neutron.ushmm.org (Robert Twitty) Hello I am using the macros ZVAL_BOOL, ZVAL_LONG, ZVAL_DOUBLE and ZVAL_STRING to change the value of a zval passed by reference. I noticed that these macros do not free the original value if it's a string, array, object or resource prior to the change. This causes a possible memory leak. Is this a normal practice? And, if not, what is the accepted practice for changing zval's passed by reference? -- bob