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

Bug #3772 hang on doing "pear install xxx" etc
Submitted: 2005-03-11 12:09 UTC
From: ralph at cs dot cf dot ac dot uk Assigned: vblavet
Status: Bogus Package: Archive_Tar
PHP Version: 5.0.3 OS: Macos x 10.3
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-11 12:09 UTC] ralph at cs dot cf dot ac dot uk
Description: ------------ I believe this bug to be attributable to archive_tar, but may be wrong. This bug was previously in the database, but I can now longer find it. At the console, as root, do e.g. sudo pear upgrade-all The packages are downloaded, but the program hangs (with processor running flat out) at the stage where downloaded tgz files are expanded before the packages get installed. The only way out is to type ctrl-C, as shown below. sudo pear upgrade-all Will upgrade db Will upgrade xml_rpc downloading DB-1.7.4.tgz ... Starting to download DB-1.7.4.tgz (126,502 bytes) ............................done: 126,502 bytes ^C Reproduce code: --------------- sudo pear upgrade-all Expected result: ---------------- Packages should be installed. Actual result: -------------- pear hangs without completing the install

Comments

 [2005-03-11 12:10 UTC] ralph at cs dot cf dot ac dot uk
typo corrected
 [2005-03-11 12:55 UTC] vblavet
Please look at bug http://pear.php.net/bugs/948 And test the small suggested script to test the zlib (entry 2005-03-05) I believe this is the same problem. If not let me know in order to try a better troubleshoot.
 [2005-03-11 13:56 UTC] ralph at cs dot cf dot ac dot uk
I bleieve bug 948 to have been wrongly closed. This IS a bug in PEAR OR php itself. Just closing it is unhelpful when PEAR does not work for MacOS 10.3. The following test: <?php $fd = gzopen('temp.gz', 'wb9'); for ($i=0; $i<5000; $i++) gzwrite($fd, "hello world !"); gzclose($fd); $fd = gzopen('temp.gz', 'rb'); while (strlen($v_binary_data = gzread($fd, 512)) != 0) { } gzclose($fd); echo "OK Done !"; ?> results in a hang in php. This may reflect a bug in php itself. In that case, please escalate the bug to the php maintainers.
 [2005-03-11 17:18 UTC] vblavet
Sorry, but your problem does not imply a bug in PEAR itself. For a list of more appropriate places to ask for help using PEAR, please visit http://pear.php.net/support/ as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PEAR. Thanks for doing the small script test. It confirms what was reported in bug 948. And yes may be you are right or not about bug closing ... But as far as Archive_Tar in PEAR is concerned the bug 948 is not an Archive_Tar PEAR bug, but rather a PHP bug. So the PEAR bug should be closed. It's difficult for me to report a bug on a system I don't have (MAC OS), where I'm not able to reproduce anything. However I did a quick search on PHP bugs, and it seems this problem is already identified (bug #15741, #15987, ...). Hope this helps.
 [2005-03-14 13:37 UTC] RALPH at CS dot CF dot AC dot UK
The PHP bugs you refer to are nothing to do with the one reported here.
 [2005-03-14 13:43 UTC] ralph at cs dot cf dot ac dot uk
Filed as php bug 32301
 [2007-06-20 19:08 UTC] asherwolf (Asher Wolfstein)
PHP Bug 32301 doesn't seem to exist anymore. If one can't use go-pear.phar for any reason I have provided an alternative manual fix for this problem http://www.asherwolf.com/projects/php/pear/index.html. You can direct questions about this possible fix to me at asher AT asherwolf DOT com.