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

Bug #17022 Crashes with "Argument #2 not an array"
Submitted: 2010-01-22 05:13 UTC
From: soltis Assigned: clbustos
Status: Closed Package: PHP_Beautifier (version 0.1.14)
PHP Version: 5.2.5 OS: Linux
Roadmaps: 1.0.0RC1    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 31 + 11 = ?

 
 [2010-01-22 05:13 UTC] soltis (Kai Moonbourn)
Description: ------------ Running "php_beautifier -f ./myfile.php -o ./myfile.php.pretty -t 1" crashes and does nothing. I have PHP 5.2.6 but that wasn't an option in the drop-down. Expected result: ---------------- Pretty files; whatever the program normally outputs when it works? (I have no idea, it won't work at all for me) Actual result: -------------- PHP Warning: array_merge(): Argument #2 is not an array in /usr/share/pear/PHP/Beautifier/Batch.php on line 177 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/PHP/Beautifier/Batch.php on line 181 Jan 21 16:10:54 php_beautifier [error] Can't match any file

Comments

 [2010-03-16 10:59 UTC] clbustos (Claudio Bustos)
-Status: Open +Status: Closed -Assigned To: +Assigned To: clbustos -Roadmap Versions: +Roadmap Versions: 1.0.0RC1
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Problem on the documentation. '-t' and '-s' are unary operators and doesn't require arguments. So, your command should be "php_beautifier -f ./myfile.php -o ./myfile.php.pretty -t" Thanks!
 [2010-03-16 11:02 UTC] clbustos (Claudio Bustos)
My bad. '-s' and '-t' shouldn't be put at the end of the command line, cause arguments are treated like filenames.