Professional Web Applications Themes

#39277 [NEW]: php-cgi does not p command line arguments when running under Apache - PHP Bugs

From: nisoi at mail dot ru Operating system: FreeBsd 6.1 PHP version: 4.4.4 PHP Bug Type: CGI related Bug description: php-cgi does not p command line arguments when running under Apache Description: ------------ PHP-4.4.4-cgi does not p command line arguments when run under Apache (but ps it when run from shell). Php5 works fine in same situation. I run php-4.4.4 as cgi under Apache/1.3.34. All requests for *.php are redirected to php-cgi with Action php-script /cgi-bin/php4 /cgi-bin/php4 looks like this: === /cgi-bin/php4 ==> #!/usr/local/php4/bin/php-cgi -c/home/scrtest/www/site1/public_html/php-c.ini <== /cgi-bin/php4 === But phpinfo() says that it is using default config from /usr/local/php4/etc/php-cgi.ini. No ...

  1. #1

    Default #39277 [NEW]: php-cgi does not p command line arguments when running under Apache

    From: nisoi at mail dot ru
    Operating system: FreeBsd 6.1
    PHP version: 4.4.4
    PHP Bug Type: CGI related
    Bug description: php-cgi does not p command line arguments when running under Apache

    Description:
    ------------
    PHP-4.4.4-cgi does not p command line arguments when run under Apache
    (but ps it when run from shell). Php5 works fine in same situation.

    I run php-4.4.4 as cgi under Apache/1.3.34. All requests for *.php are
    redirected to php-cgi with

    Action php-script /cgi-bin/php4

    /cgi-bin/php4 looks like this:

    === /cgi-bin/php4 ==>
    #!/usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    But phpinfo() says that it is using default config from
    /usr/local/php4/etc/php-cgi.ini. No other arguments are working: neither
    "-n", neither "-h", nor anything.

    Even this trick:

    === /cgi-bin/php4 ==>
    #!/bin/sh

    /usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    does not make php-cgi to take it's arguments.

    When I run same command from shell, php-cgi ps it's arguments
    correctly.

    Reproduce code:
    ---------------
    <?php

    phpinfo();

    ?>


    Expected result:
    ----------------
    Want to see /home/scrtest/www/site1/public_html/php-c.ini as configuration
    file.


    Actual result:
    --------------
    See /usr/local/php4/etc/php-cgi.ini as configuration file.

    --
    Edit bug report at [url]http://bugs.php.net/?id=39277&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=39277&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=39277&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=39277&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=39277&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=39277&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=39277&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=39277&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=39277&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=39277&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=39277&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=39277&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=39277&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=39277&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=39277&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=39277&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=39277&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=39277&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=39277&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=39277&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=39277&r=mysqlcfg[/url]
    nisoi at mail dot ru Guest

  2. #2

    Default #39277 [Opn]: php-cgi does not p command line arguments when running under Apache

    ID: 39277
    User updated by: nisoi at mail dot ru
    Reported By: nisoi at mail dot ru
    Status: Open
    Bug Type: CGI related
    Operating System: FreeBsd 6.1
    PHP Version: 4.4.4
    New Comment:

    Oops. Erh.. Sorry, there really must be only one line
    calling php-cgi.


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

    [2006-10-27 11:14:01] nisoi at mail dot ru

    Of course, there is one line calling php-cgi, it was
    broken into two lines by form window wrapping.

    Shold be like this:
    === /cgi-bin/php4 ==>
    #!/usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

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

    [2006-10-27 11:02:42] nisoi at mail dot ru

    Description:
    ------------
    PHP-4.4.4-cgi does not p command line arguments when run under
    Apache (but ps it when run from shell). Php5 works fine in same
    situation.

    I run php-4.4.4 as cgi under Apache/1.3.34. All requests for *.php are
    redirected to php-cgi with

    Action php-script /cgi-bin/php4

    /cgi-bin/php4 looks like this:

    === /cgi-bin/php4 ==>
    #!/usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    But phpinfo() says that it is using default config from
    /usr/local/php4/etc/php-cgi.ini. No other arguments are working:
    neither "-n", neither "-h", nor anything.

    Even this trick:

    === /cgi-bin/php4 ==>
    #!/bin/sh

    /usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    does not make php-cgi to take it's arguments.

    When I run same command from shell, php-cgi ps it's arguments
    correctly.

    Reproduce code:
    ---------------
    <?php

    phpinfo();

    ?>


    Expected result:
    ----------------
    Want to see /home/scrtest/www/site1/public_html/php-c.ini as
    configuration file.


    Actual result:
    --------------
    See /usr/local/php4/etc/php-cgi.ini as configuration file.


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39277&edit=1[/url]
    nisoi at mail dot ru Guest

  3. #3

    Default #39277 [Opn]: php-cgi does not p command line arguments when running under Apache

    ID: 39277
    User updated by: nisoi at mail dot ru
    Reported By: nisoi at mail dot ru
    Status: Open
    Bug Type: CGI related
    Operating System: FreeBsd 6.1
    PHP Version: 4.4.4
    New Comment:

    I just tested this issue under Gentoo Linux. Same things happen: PHP
    does not pay any attention to command line arguments passed to php-cgi
    running under Apache.


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

    [2006-10-27 11:02:42] nisoi at mail dot ru

    Description:
    ------------
    PHP-4.4.4-cgi does not p command line arguments when run under
    Apache (but ps it when run from shell). Php5 works fine in same
    situation.

    I run php-4.4.4 as cgi under Apache/1.3.34. All requests for *.php are
    redirected to php-cgi with

    Action php-script /cgi-bin/php4

    /cgi-bin/php4 looks like this:

    === /cgi-bin/php4 ==>
    #!/usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    But phpinfo() says that it is using default config from
    /usr/local/php4/etc/php-cgi.ini. No other arguments are working:
    neither "-n", neither "-h", nor anything.

    Even this trick:

    === /cgi-bin/php4 ==>
    #!/bin/sh

    /usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    does not make php-cgi to take it's arguments.

    When I run same command from shell, php-cgi ps it's arguments
    correctly.

    Reproduce code:
    ---------------
    <?php

    phpinfo();

    ?>


    Expected result:
    ----------------
    Want to see /home/scrtest/www/site1/public_html/php-c.ini as
    configuration file.


    Actual result:
    --------------
    See /usr/local/php4/etc/php-cgi.ini as configuration file.


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39277&edit=1[/url]
    nisoi at mail dot ru Guest

  4. #4

    Default #39277 [Opn->Bgs]: php-cgi does not p command line arguments when running under Apache

    ID: 39277
    Updated by: [email]tony2001php.net[/email]
    Reported By: nisoi at mail dot ru
    -Status: Open
    +Status: Bogus
    Bug Type: CGI related
    Operating System: FreeBsd 6.1
    PHP Version: 4.4.4
    New Comment:

    Expected behaviour.
    PHP CGI doesn't use commandline parameters when run in CGI mode (but it
    does use them when run in console mode).


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

    [2006-10-31 12:17:21] nisoi at mail dot ru

    I just tested this issue under Gentoo Linux. Same things happen: PHP
    does not pay any attention to command line arguments passed to php-cgi
    running under Apache.

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

    [2006-10-27 11:02:42] nisoi at mail dot ru

    Description:
    ------------
    PHP-4.4.4-cgi does not p command line arguments when run under
    Apache (but ps it when run from shell). Php5 works fine in same
    situation.

    I run php-4.4.4 as cgi under Apache/1.3.34. All requests for *.php are
    redirected to php-cgi with

    Action php-script /cgi-bin/php4

    /cgi-bin/php4 looks like this:

    === /cgi-bin/php4 ==>
    #!/usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    But phpinfo() says that it is using default config from
    /usr/local/php4/etc/php-cgi.ini. No other arguments are working:
    neither "-n", neither "-h", nor anything.

    Even this trick:

    === /cgi-bin/php4 ==>
    #!/bin/sh

    /usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    does not make php-cgi to take it's arguments.

    When I run same command from shell, php-cgi ps it's arguments
    correctly.

    Reproduce code:
    ---------------
    <?php

    phpinfo();

    ?>


    Expected result:
    ----------------
    Want to see /home/scrtest/www/site1/public_html/php-c.ini as
    configuration file.


    Actual result:
    --------------
    See /usr/local/php4/etc/php-cgi.ini as configuration file.


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39277&edit=1[/url]
    tony2001@php.net Guest

  5. #5

    Default #39277 [Bgs->Opn]: php-cgi does not p command line arguments when running under Apache

    ID: 39277
    User updated by: nisoi at mail dot ru
    Reported By: nisoi at mail dot ru
    -Status: Bogus
    +Status: Open
    Bug Type: CGI related
    Operating System: FreeBsd 6.1
    PHP Version: 4.4.4
    New Comment:

    But PHP-5.1.2-CGI does interpret command line arguments while running
    under Apache. Also, php-4.4.2-cgi (not php-cli!) interprets these
    arguments while running from command line. Is this expected behavior
    too?

    I mean, all three ways PHP-cgis work cannot be correct at the same
    time.


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

    [2006-11-11 00:52:55] [email]tony2001php.net[/email]

    Expected behaviour.
    PHP CGI doesn't use commandline parameters when run in CGI mode (but it
    does use them when run in console mode).

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

    [2006-10-31 12:17:21] nisoi at mail dot ru

    I just tested this issue under Gentoo Linux. Same things happen: PHP
    does not pay any attention to command line arguments passed to php-cgi
    running under Apache.

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

    [2006-10-27 11:02:42] nisoi at mail dot ru

    Description:
    ------------
    PHP-4.4.4-cgi does not p command line arguments when run under
    Apache (but ps it when run from shell). Php5 works fine in same
    situation.

    I run php-4.4.4 as cgi under Apache/1.3.34. All requests for *.php are
    redirected to php-cgi with

    Action php-script /cgi-bin/php4

    /cgi-bin/php4 looks like this:

    === /cgi-bin/php4 ==>
    #!/usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    But phpinfo() says that it is using default config from
    /usr/local/php4/etc/php-cgi.ini. No other arguments are working:
    neither "-n", neither "-h", nor anything.

    Even this trick:

    === /cgi-bin/php4 ==>
    #!/bin/sh

    /usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    does not make php-cgi to take it's arguments.

    When I run same command from shell, php-cgi ps it's arguments
    correctly.

    Reproduce code:
    ---------------
    <?php

    phpinfo();

    ?>


    Expected result:
    ----------------
    Want to see /home/scrtest/www/site1/public_html/php-c.ini as
    configuration file.


    Actual result:
    --------------
    See /usr/local/php4/etc/php-cgi.ini as configuration file.


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39277&edit=1[/url]
    nisoi at mail dot ru Guest

  6. #6

    Default #39277 [Opn->Fbk]: php-cgi does not p command line arguments when running under Apache

    ID: 39277
    Updated by: [email]tony2001php.net[/email]
    Reported By: nisoi at mail dot ru
    -Status: Open
    +Status: Feedback
    Bug Type: CGI related
    Operating System: FreeBsd 6.1
    PHP Version: 4.4.4
    New Comment:
    >But PHP-5.1.2-CGI does interpret command line arguments
    > while running under Apache
    No, it doesn't. It's extremely easy to show:

    # export SERVER_SOFTWARE=1
    # ./sapi/cgi/php -i
    Status: 404
    X-Powered-By: PHP/5.1.2
    Content-type: text/html

    No input file specified.
    # unset SERVER_SOFTWARE
    # ./sapi/cgi/php -i
    X-Powered-By: PHP/5.1.2
    Content-type: text/html

    <!DOCTYPE html PUBLIC ..........


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

    [2006-11-11 12:21:30] nisoi at mail dot ru

    But PHP-5.1.2-CGI does interpret command line arguments while running
    under Apache. Also, php-4.4.2-cgi (not php-cli!) interprets these
    arguments while running from command line. Is this expected behavior
    too?

    I mean, all three ways PHP-cgis work cannot be correct at the same
    time.

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

    [2006-11-11 00:52:55] [email]tony2001php.net[/email]

    Expected behaviour.
    PHP CGI doesn't use commandline parameters when run in CGI mode (but it
    does use them when run in console mode).

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

    [2006-10-31 12:17:21] nisoi at mail dot ru

    I just tested this issue under Gentoo Linux. Same things happen: PHP
    does not pay any attention to command line arguments passed to php-cgi
    running under Apache.

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

    [2006-10-27 11:02:42] nisoi at mail dot ru

    Description:
    ------------
    PHP-4.4.4-cgi does not p command line arguments when run under
    Apache (but ps it when run from shell). Php5 works fine in same
    situation.

    I run php-4.4.4 as cgi under Apache/1.3.34. All requests for *.php are
    redirected to php-cgi with

    Action php-script /cgi-bin/php4

    /cgi-bin/php4 looks like this:

    === /cgi-bin/php4 ==>
    #!/usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    But phpinfo() says that it is using default config from
    /usr/local/php4/etc/php-cgi.ini. No other arguments are working:
    neither "-n", neither "-h", nor anything.

    Even this trick:

    === /cgi-bin/php4 ==>
    #!/bin/sh

    /usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    does not make php-cgi to take it's arguments.

    When I run same command from shell, php-cgi ps it's arguments
    correctly.

    Reproduce code:
    ---------------
    <?php

    phpinfo();

    ?>


    Expected result:
    ----------------
    Want to see /home/scrtest/www/site1/public_html/php-c.ini as
    configuration file.


    Actual result:
    --------------
    See /usr/local/php4/etc/php-cgi.ini as configuration file.


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39277&edit=1[/url]
    tony2001@php.net Guest

  7. #7

    Default #39277 [Fbk->Opn]: php-cgi does not p command line arguments when running under Apache

    ID: 39277
    User updated by: nisoi at mail dot ru
    Reported By: nisoi at mail dot ru
    -Status: Feedback
    +Status: Open
    Bug Type: CGI related
    Operating System: FreeBsd 6.1
    PHP Version: 4.4.4
    New Comment:

    Well, you are right. Please forgive me for this.

    But if so, then there is another... ehhm.. inconvenience. It is
    impossible to set custom php.ini via .htaccess for some directory.

    When I use in .htaccess:

    SetEnv PHPRC /home/user/public_html/

    and if I redirect all *.php requests to /home/http/php4-cgi (which is
    just a symlink to php-cgi), Apache renames PHPRC to REDIRECT_PHPRC,
    because requests are redirected to another script. Thus, php does not
    recognize this variable and uses default /usr/local/etc/php.ini.

    Of course, I can use a sh script instead of /home/http/php4-cgi, and
    export PHPRC there. This works. But there is absolutely unnecessary sh
    process in this case.

    As a workaround, php could either recognize REDIRECT_PHPRC, or use -C
    argument in command line while working in CGI mode.


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

    [2006-11-11 12:40:38] [email]tony2001php.net[/email]
    >But PHP-5.1.2-CGI does interpret command line arguments
    > while running under Apache
    No, it doesn't. It's extremely easy to show:

    # export SERVER_SOFTWARE=1
    # ./sapi/cgi/php -i
    Status: 404
    X-Powered-By: PHP/5.1.2
    Content-type: text/html

    No input file specified.
    # unset SERVER_SOFTWARE
    # ./sapi/cgi/php -i
    X-Powered-By: PHP/5.1.2
    Content-type: text/html

    <!DOCTYPE html PUBLIC ..........

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

    [2006-11-11 12:21:30] nisoi at mail dot ru

    But PHP-5.1.2-CGI does interpret command line arguments while running
    under Apache. Also, php-4.4.2-cgi (not php-cli!) interprets these
    arguments while running from command line. Is this expected behavior
    too?

    I mean, all three ways PHP-cgis work cannot be correct at the same
    time.

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

    [2006-11-11 00:52:55] [email]tony2001php.net[/email]

    Expected behaviour.
    PHP CGI doesn't use commandline parameters when run in CGI mode (but it
    does use them when run in console mode).

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

    [2006-10-31 12:17:21] nisoi at mail dot ru

    I just tested this issue under Gentoo Linux. Same things happen: PHP
    does not pay any attention to command line arguments passed to php-cgi
    running under Apache.

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

    [2006-10-27 11:02:42] nisoi at mail dot ru

    Description:
    ------------
    PHP-4.4.4-cgi does not p command line arguments when run under
    Apache (but ps it when run from shell). Php5 works fine in same
    situation.

    I run php-4.4.4 as cgi under Apache/1.3.34. All requests for *.php are
    redirected to php-cgi with

    Action php-script /cgi-bin/php4

    /cgi-bin/php4 looks like this:

    === /cgi-bin/php4 ==>
    #!/usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    But phpinfo() says that it is using default config from
    /usr/local/php4/etc/php-cgi.ini. No other arguments are working:
    neither "-n", neither "-h", nor anything.

    Even this trick:

    === /cgi-bin/php4 ==>
    #!/bin/sh

    /usr/local/php4/bin/php-cgi
    -c/home/scrtest/www/site1/public_html/php-c.ini
    <== /cgi-bin/php4 ===

    does not make php-cgi to take it's arguments.

    When I run same command from shell, php-cgi ps it's arguments
    correctly.

    Reproduce code:
    ---------------
    <?php

    phpinfo();

    ?>


    Expected result:
    ----------------
    Want to see /home/scrtest/www/site1/public_html/php-c.ini as
    configuration file.


    Actual result:
    --------------
    See /usr/local/php4/etc/php-cgi.ini as configuration file.


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


    --
    Edit this bug report at [url]http://bugs.php.net/?id=39277&edit=1[/url]
    nisoi at mail dot ru Guest

  8. #8

    Default #39277 [Opn->Bgs]: php-cgi does not p command line arguments when running under Apache

    ID: 39277
    Updated by: [email]tony2001php.net[/email]
    Reported By: nisoi at mail dot ru
    -Status: Open
    +Status: Bogus
    Bug Type: CGI related
    Operating System: FreeBsd 6.1
    PHP Version: 4.4.4
    New Comment:

    Duplicate of FR #37193.


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

    [2006-11-11 16:13:47] nisoi at mail dot ru

    Well, you are right. Please forgive me for this.

    But if so, then there is another... ehhm.. inconvenience. It is
    impossible to set custom php.ini via .htaccess for some directory.

    When I use in .htaccess:

    SetEnv PHPRC /home/user/public_html/

    and if I redirect all *.php requests to /home/http/php4-cgi (which is
    just a symlink to php-cgi), Apache renames PHPRC to REDIRECT_PHPRC,
    because requests are redirected to another script. Thus, php does not
    recognize this variable and uses default /usr/local/etc/php.ini.

    Of course, I can use a sh script instead of /home/http/php4-cgi, and
    export PHPRC there. This works. But there is absolutely unnecessary sh
    process in this case.

    As a workaround, php could either recognize REDIRECT_PHPRC, or use -C
    argument in command line while working in CGI mode.

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

    [2006-11-11 12:40:38] [email]tony2001php.net[/email]
    >But PHP-5.1.2-CGI does interpret command line arguments
    > while running under Apache
    No, it doesn't. It's extremely easy to show:

    # export SERVER_SOFTWARE=1
    # ./sapi/cgi/php -i
    Status: 404
    X-Powered-By: PHP/5.1.2
    Content-type: text/html

    No input file specified.
    # unset SERVER_SOFTWARE
    # ./sapi/cgi/php -i
    X-Powered-By: PHP/5.1.2
    Content-type: text/html

    <!DOCTYPE html PUBLIC ..........

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

    [2006-11-11 12:21:30] nisoi at mail dot ru

    But PHP-5.1.2-CGI does interpret command line arguments while running
    under Apache. Also, php-4.4.2-cgi (not php-cli!) interprets these
    arguments while running from command line. Is this expected behavior
    too?

    I mean, all three ways PHP-cgis work cannot be correct at the same
    time.

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

    [2006-11-11 00:52:55] [email]tony2001php.net[/email]

    Expected behaviour.
    PHP CGI doesn't use commandline parameters when run in CGI mode (but it
    does use them when run in console mode).

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

    [2006-10-31 12:17:21] nisoi at mail dot ru

    I just tested this issue under Gentoo Linux. Same things happen: PHP
    does not pay any attention to command line arguments passed to php-cgi
    running under Apache.

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/39277[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=39277&edit=1[/url]
    tony2001@php.net Guest

Similar Threads

  1. Replies: 0
    Last Post: October 27th, 11:14 AM
  2. command line arguments
    By pop83in in forum Dreamweaver AppDev
    Replies: 0
    Last Post: March 28th, 07:54 AM
  3. Any way to pass arguments to projectors from Windows command line?
    By matt_s webforumsuser@macromedia.com in forum Macromedia Director Lingo
    Replies: 5
    Last Post: November 30th, 10:57 PM
  4. #25797 [Opn]: Running the php cli more than once at the same command line causes it to hang.
    By brian at centurionservice dot com in forum PHP Development
    Replies: 0
    Last Post: October 8th, 04:35 PM
  5. Regexp constructed from command line arguments.
    By Tad McClellan in forum PERL Miscellaneous
    Replies: 2
    Last Post: July 7th, 05:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139