FAQ
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

------------------------------------------------------------------------

Search Discussions

  • Clbustos at Mar 16, 2010 at 6:06 am
    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: Closed
    Type: Bug
    Package: PHP_Beautifier
    Operating System: Linux
    Package Version: 0.1.14
    PHP Version: 5.2.5
    Assigned To: clbustos
    Roadmap Versions:
    New Comment:

    My bad. '-s' and '-t' shouldn't be put at the end of the command line,
    cause arguments are treated like filenames.


    Previous Comments:
    ------------------------------------------------------------------------

    [2010-03-16 06:59:08] clbustos

    -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-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

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 16, '10 at 6:03a
activeMar 16, '10 at 6:06a
posts2
users1
websitepear.php.net

1 user in discussion

Clbustos: 2 posts

People

Translate

site design / logo © 2023 Grokbase