Crashes with "Argument #2 not an array"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 filesoltis
soltishttp://pear.php.net/bugs/17022
PHP_Beautifier Bug
Reported by soltis
2010-01-22T00:13:24+00:00
PHP: 5.2.5 OS: Linux Package Version: 0.1.14
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]]>PHP_Beautifier Bug
Reported by soltis
2010-01-22T00:13:24+00:00
PHP: 5.2.5 OS: Linux Package Version: 0.1.14
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]]>2010-01-22T00:13:24+00:00
clbustos [2010-03-16 07:02] http://pear.php.net/bugs/17022#1268722938
My bad. '-s' and '-t' shouldn't be put at the end of the command line, cause arguments are treated like filenames.]]>My bad. '-s' and '-t' shouldn't be put at the end of the command line, cause arguments are treated like filenames.]]>2010-03-16T07:02:18+00:00
clbustos [2010-03-16 06:59] http://pear.php.net/bugs/17022#1268722748
<div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Closed</span>
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: clbustos</span>
<span class="removed">-Roadmap Versions:</span>
<span class="added">+Roadmap Versions: 1.0.0RC1</span>
</div>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!]]><div id="changeset">
<span class="removed">-Status: Open</span>
<span class="added">+Status: Closed</span>
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: clbustos</span>
<span class="removed">-Roadmap Versions:</span>
<span class="added">+Roadmap Versions: 1.0.0RC1</span>
</div>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-16T06:59:08+00:00