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

Request #14842 check assigned memory rather than crashing due to memory_limit being exceeded
Submitted: 2008-10-21 13:17 UTC
From: kguest Assigned:
Status: Open Package: PEAR (version 1.7.2)
PHP Version: 5.2.5 OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2008-10-21 13:17 UTC] kguest (Ken Guest)
Description: ------------ I installed version 1.7.4 of wamp and proceeded to upgrade pear from 1.6.1 to the current version. Got a fatal error regarding memory_limit being too low - doubled it to 16MB and upgrade worked ok. pear itself should check the assigned memory when < 16MB, it should tell the user # C:\wamp\php>pear list # INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: # ========================================= # PACKAGE VERSION STATE # Archive_Tar 1.3.2 stable # Console_Getopt 1.2.3 stable # PEAR 1.6.1 stable # Structures_Graph 1.0.2 stable # # C:\wamp\php>pear upgrade-all # Will upgrade channel://pear.php.net/pear # WARNING: channel "pear.php.net" has updated its protocols, use "channel-update p # ear.php.net" to update # Did not download optional dependencies: pear/XML_RPC, use --alldeps to download # automatically # pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0) # downloading PEAR-1.7.2.tgz ... # Starting to download PEAR-1.7.2.tgz (302,744 bytes) # .....................done: 302,744 bytes # # Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 9 # 8304 bytes) in C:\wamp\php\PEAR\PEAR\PackageFile\Generator\v2.php on line 207 Test script: --------------- http://pastebin.com/m250aefec

Comments

 [2009-08-02 18:12 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Type: Bug +Type: Feature/Change Request
More of a feature request than a bug, newer PHP versions have a much higher mem limit by default than 8mb due to the new GC handling.