#46099 [Asn->Csd]: Xsltprocessor::setProfiling - memory leak

From: Date: Thu, 18 Sep 2008 11:51:00 +0000
Subject: #46099 [Asn->Csd]: Xsltprocessor::setProfiling - memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129079@lists.php.net to get a copy of this message
ID: 46099 Updated by: rrichards@php.net Reported By: felipe@php.net -Status: Assigned +Status: Closed Bug Type: XSLT related PHP Version: 5.3CVS-2008-09-16 (CVS) Assigned To: rrichards New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-09-16 18:59:24] felipe@php.net A probable fix: http://felipe.ath.cx/diff/bug46099.diff ------------------------------------------------------------------------ [2008-09-16 18:57:42] felipe@php.net Description: ------------ See below. The intern->profiling isn't freed and not checked when calling setProfiling() two or more times. Reproduce code: --------------- <?php $x = new xsltprocessor(); $x->setProfiling('foo'); $x->setProfiling('foo'); Actual result: -------------- Memory leak. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46099&edit=1

« previous php.bugs (#129079) next »