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

Bug #14696 Stalls at 90% when processing directory
Submitted: 2008-09-22 18:13 UTC
From: wdm Assigned: farell
Status: Closed Package: PHP_CompatInfo (version 1.8.0)
PHP Version: 5.2.3 OS: Mac OSX
Roadmaps: (Not assigned)    
Subscription  


 [2008-09-22 18:13 UTC] wdm (William Meleyal)
Description: ------------ Trying to parse the files for KohanaPHP (kohanaphp.com) I get an error with both the command line + php script versions I've tested cli + script on other directories, which return the expected result. Was getting memory errors at first, so increased memory_limit to 32M in php.ini Test script: --------------- $ pci --summarize --progress bar --dir /users/william/sites/kohana/ - 452/488 files [==========================>--] 92.62% Elapsed Time: 00:07.51 Expected result: ---------------- Expected to see the result Actual result: -------------- Both cli + script versions get stuck. The cli version stalls at 92.62%. The script version gives this error when run in the browser, then continues to give the "Undefined offset" Notices: Wait while parsing file "/users/william/sites/kohana/modules/gmaps/views/gmaps/javascript.php" Notice: Undefined offset: 133 in /Applications/MAMP/bin/php5/lib/php/PHP/CompatInfo/Parser.php on line 1086 Notice: Undefined offset: 133 in /Applications/MAMP/bin/php5/lib/php/PHP/CompatInfo/Parser.php on line 1087 etc...

Comments

 [2008-09-25 21:29 UTC] farell (Laurent Laville)
Hi William, I've just downloaded the core version (without any additional modules) of KohanaPHP 2.2. I got no error during parsing. I noticed on your report a total of 488 files. I suspect you've download additional modules (is it true ; if yes, give me the list) With the core of KohanaPHP 2.2 , the PHP_CompatInfo cli script parsed only 156 files.
 [2008-09-26 09:50 UTC] wdm (William Meleyal)
Hi Laurent, Thanks for your reply. You're right, I ran the test on Kohana 2.2 with all the modules. It seems to hang at the Gmaps module (see above), so maybe a problem parsing javascript? Just a guess. I ran the test on a download of Kohana without modules and it works. Now I just have to make sense of what it's telling me :)
 [2008-09-27 09:20 UTC] farell (Laurent Laville)
Hi William, I will apply a patch to fix the parser bug especially when find such file structure "kohana/modules/gmaps/views/gmaps/javascript.php". Thanks for bug reporting
 [2008-09-27 13:46 UTC] farell (Laurent Laville)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/PHP_CompatInfo