Edit report at http://pear.php.net/bugs/bug.php?id=17022&edit=1
ID: 17022
Updated by: [email protected]
Reported By: xaltotun at gmail dot com
Summary: Crashes with "Argument #2 not an array"
-Status: Open
+Status: Closed
Type: Bug
Package: PHP_Beautifier
Operating System: Linux
Package Version: 0.1.14
PHP Version: 5.2.5
-Assigned To:
+Assigned To: clbustos
-Roadmap Versions:
+Roadmap Versions: 1.0.0RC1
New Comment:
-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!
Previous Comments:
------------------------------------------------------------------------
[2010-01-22 00:13:24] soltis
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
------------------------------------------------------------------------