Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #319 pear list-all with preferred=beta runs out of memory.
Submitted: 2003-11-27 20:46 UTC
From: cipri Assigned:
Status: Bogus Package: PEAR
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2003-11-27 20:46 UTC] cipri
Description: ------------ After setting preferred_state to beta and doing a list-all, PHP runs out of memory after fetching the entire list via XML::RPC. Reproduce code: --------------- [root@BorgCube pear]# pear config-set preferred_state beta [root@BorgCube pear]# pear list-all Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 2949120 bytes) in /usr/share/pear/XML/RPC.php(689) : eval()'d code on line 742 Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 0 bytes) in Unknown on line 0

Comments

 [2003-11-29 19:53 UTC] mroch
I noticed this too. It's possibly because XML_RPC builds an enormous string to eval(), and keeps the resulting array (quite large as well) in memory. Not sure of a good fix for this aside from rewriting the package to not use eval()...
 [2004-01-26 01:38 UTC] pajoye
That should be solved using only the required fields in the RPC calls. However this is not a permanent solution, as PEAR growing, list-all respons will grow as well. What's about changing your php.ini for the CLI? If you use the web frontend, you have to wait a bit then. Paging requests do not exist yet. pierre
 [2004-04-27 07:12 UTC] dufuz
I get the same when doing pear search LiveUser for example. Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2949120 bytes) in /usr/share/pear/XML/RPC.php(750) : eval()'d code on line 938 Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes) in Unknown on line 0
 [2004-05-31 17:02 UTC] pierre at dotgeek dot org
Change your php.ini for now. --Pierre
 [2005-04-01 21:41 UTC] pete5520 at pdxeng dot com
what should the php.ini changes be ?
 [2005-06-02 11:58 UTC] bonyiii at freestart dot hu
I found it on some page: The following line needs to be changed: memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) and increase the limit.
 [2007-02-21 21:54 UTC] cellog (Greg Beaver)
you can also use the peardev command, which has no memory limit, so marking as bogus