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

Bug #3866 Fatal memory error
Submitted: 2005-03-17 22:39 UTC
From: php at jonobacon dot org Assigned:
Status: No Feedback Package: PEAR
PHP Version: 4.3.8 OS: Ubuntu Linux on PPC
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-17 22:39 UTC] php at jonobacon dot org
Description: ------------ I tried running the php4-package from Ubuntu Universe and I got fatal memory errors. I have changed memory_limit in php.ini to 64M and I had the same problem. I then tried to run: lynx -source http://pear.php.net/go-pear | php This is the output: root@forge:/home/jono # lynx -source http://pear.php.net/go-pear | php Welcome to go-pear! Go-pear will install the 'pear' command and all the files needed by it. This command is your tool for PEAR installation and maintenance. Go-pear also lets you download and install the PEAR packages bundled with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit. If you wish to abort, press Control-C now, or press Enter to continue: HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none:: Below is a suggested file layout for your new PEAR installation. To change individual locations, type the number in front of the directory. Type 'all' to change all of them or simply press Enter to accept these locations. 1. Installation prefix : /usr 2. Binaries directory : $prefix/bin 3. PHP code directory ($php_dir) : $prefix/share/pear 4. Documentation base directory : $php_dir/docs 5. Data base directory : $php_dir/data 6. Tests base directory : $php_dir/tests 1-6, 'all' or Enter to continue: The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit. Would you like to install these as well? [Y/n] : y Loading zlib: ok Downloading package: PEAR-stable......ok Downloading package: Archive_Tar-stable....ok Downloading package: Console_Getopt-stable....ok Downloading package: XML_RPC-stable....ok Bootstrapping: PEAR...................(remote) ok Bootstrapping: Archive_Tar............(remote) ok Bootstrapping: Console_Getopt.........(remote) ok Downloading package: DB...............ok Downloading package: Net_Socket.......ok Downloading package: Net_SMTP.........ok Downloading package: Mail.............ok Downloading package: XML_Parser.......ok Downloading package: PHPUnit..........ok Extracting installer..................ok install ok: PEAR 1.3.5 [[[NOTE - at this point the process seemed to hang for little while and checking in top, the php process was sucking all the CPU processing power.]]]] Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 138 bytes) in /tmp/gopeLtVMV0/Archive/Tar.php on line 1234 Allowed memory size of 67108864 bytes exhausted (tried to allocate 40 bytes) root@forge:/home/jono # Expected result: ---------------- It should work. :P

Comments

 [2005-04-04 05:12 UTC] cellog
I ran into some odd behavior with PHP 5.0.3: could you insert this code after: foreach ($config_vars as $var) { $dir = $$var; if (!preg_match('/_dir$/', $var)) { continue; } if (!@is_dir($dir)) { if (!mkdir_p($dir)) { $root = WINDOWS ? 'administrator' : 'root'; bail("Unable to create {$config_desc[$var]} $dir. Run this script as $root or pick another location.\n"); } } please insert this line before the closing bracket }: printf(" $descfmt : %s\n", $config_desc[$var], $$var); and run again - paste the output, which should print all of the final configuration variable values