php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51683 Memory is not released after the request
Submitted: 2010-04-28 18:03 UTC Modified: 2010-05-02 18:16 UTC
From: jess at zend dot com Assigned:
Status: Not a bug Package: XMLRPC-EPI related
PHP Version: 5.2SVN-2010-04-28 (snap) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jess at zend dot com
New email:
PHP Version: OS:

 

 [2010-04-28 18:03 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-28 18:04 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-04-28 18:04 UTC] pajoye@php.net
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:16 UTC] jess at zend dot com
-Status: Feedback +Status: Open
 [2010-04-28 18:16 UTC] jess at zend dot com
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'));
 [2010-04-28 18:48 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-04-28 18:48 UTC] pajoye@php.net
We can't use ZF as a base to debug or fix a bug.

Please provide a small self contained script to reproduce this problem. 

But why does it raise an error 500? Any php error? or does it crash?
 [2010-05-02 18:05 UTC] jess at zend dot com
-Status: Feedback +Status: Open
 [2010-05-02 18:05 UTC] jess at zend dot com
Closing. Problem occurs only when proprietary Zend extensions are loaded.
Sorry for the bogus.
 [2010-05-02 18:05 UTC] jess at zend dot com
-Status: Open +Status: Closed
 [2010-05-02 18:05 UTC] jess at zend dot com
Closing
 [2010-05-02 18:16 UTC] pajoye@php.net
-Status: Closed +Status: Bogus
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Nov 29 21:03:45 2021 UTC