Edit report at http://bugs.php.net/bug.php?id=51683&edit=1
ID: 51683
User updated by: jess at zend dot com
Reported by: jess at zend dot com
Summary: Memory is not released after the request
-Status: Feedback
+Status: Open
Type: Bug
Package: XMLRPC-EPI related
Operating System: Linux
PHP Version: 5.2SVN-2010-04-28 (snap)
New Comment:
Sorry, I tried to upload an tar.gz archive with the scripts but it
failed w/o stopping and thus we got to this :)
Here are the scripts.
server.php:
<?php
require_once 'Zend/XmlRpc/Server.php';
$server = new Zend_XmlRpc_Server();
$server->addFunction('ini_get_all', 'bug');
echo $server->handle();
/**
* @return array
*/
function iniGetAll() {
return ini_get_all();
}
client.php:
<?php
require_once 'Zend/XmlRpc/Client.php';
$client = new Zend_XmlRpc_Client('http://localhost/server.php');
var_dump($client->call('bug.ini_get_all'));
Previous Comments:
------------------------------------------------------------------------
[2010-04-28 18:04:57] [email protected]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2010-04-28 18:03:17] jess at zend dot com
Description:
------------
PHP versions tested: 5_3 [5.3.2 was tested] and 5_2 [5.2.13] and, with
snapshot 201004281430 of 5_2.
libXML2 version used: 2.7.77
ZF version: 1.10.3
Attached are 2 scripts which require ZF as they create an
Zend_XmlRpc_Server object.
After calling client.php several times, since memory is not released,
the limit is exhausted and HTTP error 500 is returned.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51683&edit=1