ID: 45556 Updated by: [EMAIL PROTECTED] Reported By: felipensp at gmail dot com -Status: Assigned +Status: Closed Bug Type: XMLRPC-EPI related PHP Version: 5.2CVS-2008-07-18 (CVS) Assigned To: felipe 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-07-18 14:54:40] felipensp at gmail dot com Description: ------------ The return value from callback in xmlrpc_server_register_introspection_callback() isn't freed. Memory leak found using --enable-debug. Reproduce code: --------------- <?php $options = array (); $request = xmlrpc_encode_request ("system.describeMethods", $options); $server = xmlrpc_server_create(); function foo() { } xmlrpc_server_register_introspection_callback ($server, 'foo'); $options = array ('output_type' => 'xml', 'version' => 'xmlrpc'); xmlrpc_server_call_method ($server, $request, NULL, $options); Expected result: ---------------- No mem. leak. Actual result: -------------- [Fri Jul 18 11:48:38 2008] Script: '/home/felipe/public_html/bug.php' /home/felipe/php5_2/ext/xmlrpc/xmlrpc-epi-php.c(885) : Freeing 0x085DC198 (16 bytes), script=/home/felipe/public_html/bug.php [Fri Jul 18 11:48:38 2008] Script: '/home/felipe/public_html/bug.php' /home/felipe/php5_2/Zend/zend_operators.c(543) : Freeing 0x085DC1D8 (1 bytes), script=/home/felipe/public_html/bug.php === Total 2 memory leaks detected === ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45556&edit=1