Professional Web Applications Themes

#24502 [Asn]: Fast CGI interface is broken - PHP Development

ID: 24502 User updated by: gwang at litespeedtech dot com Reported By: gwang at litespeedtech dot com Status: Assigned Bug Type: CGI related Operating System: Linux PHP Version: 4.3.2 Assigned To: shane New Comment: This bug has not been fixed yet in 4.3.3RC2. Regards, LiteSpeed Team Previous Comments: ------------------------------------------------------------------------ [2003-07-07 06:06:50] [email]sniperphp.net[/email] Assigned to the maintainer. ------------------------------------------------------------------------ [2003-07-04 18:04:00] gwang at litespeedtech dot com Also, when I test it with phpinfo(), if the PATH_INFO is not empty, PHP_SELF is set to PATH_INFO instead of SCRIPT_NAME, then the PHP and Zend logos are missing. ------------------------------------------------------------------------ [2003-07-04 16:53:44] gwang at litespeedtech dot ...

  1. #1

    Default #24502 [Asn]: Fast CGI interface is broken

    ID: 24502
    User updated by: gwang at litespeedtech dot com
    Reported By: gwang at litespeedtech dot com
    Status: Assigned
    Bug Type: CGI related
    Operating System: Linux
    PHP Version: 4.3.2
    Assigned To: shane
    New Comment:

    This bug has not been fixed yet in 4.3.3RC2.

    Regards,
    LiteSpeed Team


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

    [2003-07-07 06:06:50] [email]sniperphp.net[/email]

    Assigned to the maintainer.


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

    [2003-07-04 18:04:00] gwang at litespeedtech dot com

    Also, when I test it with phpinfo(), if the PATH_INFO is not empty,
    PHP_SELF is set to PATH_INFO instead of SCRIPT_NAME, then the PHP and
    Zend logos are missing.

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

    [2003-07-04 16:53:44] gwang at litespeedtech dot com

    Description:
    ------------
    Fast CGI interface is broken in both 4.3.2 4.3.3rc1 and the most recent
    snap shot for web server with Fast CGI implementation that follows CGI
    specification.
    Our LiteSpeed web server (at [url]http://www.litespeedtech.com[/url] ) supports
    PHP through the Fast CGI interface (faster than Apache's mod_php). Our
    Fast CGI implementation follows the CGI specification and set
    environment variables exactly as what Apache's CGI does. It set
    SCRIPT_FILENAME=/docroot/info.php and works fine with 4.3.1, but the
    interface is broken since 4.3.2.
    Our test shows that
    SG(request_info).path_translated
    is not populated with the value of SCRIPT_FILENAME but is NULL.
    Further study shows that the root cause is at cgi-main.c:812 in release
    4.3.2
    > script_path_translated=env_path_translated;
    set script_path_translated to NULL or whatever the value of
    PATH_TRANSLATED. If we take that line out, every thing works fine.
    We can use --enable-discard-path to avoid it but it is forbidden in
    README.FastCGI (We don't know why based on our reading of the source
    code).
    I think one possilbe fix is to avoid that line of code for FastCGI, but
    may need to add some code for Apache's mod_fastcgi. Or change the
    doent, say: --enable-discard-path should be used for web server
    follows CGI Specs.

    Sincerely,
    LiteSpeed Team




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


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

    gwang at litespeedtech dot com Guest

  2. #2

    Default #24502 [Asn]: Fast CGI interface is broken

    ID: 24502
    User updated by: gwang at litespeedtech dot com
    Reported By: gwang at litespeedtech dot com
    Status: Assigned
    Bug Type: CGI related
    Operating System: Linux
    -PHP Version: 4.3.3RC3-dev
    +PHP Version: 4.3.2
    Assigned To: shane
    New Comment:

    Nothing changed in 4.3.3RC4.

    Regards,
    LiteSpeed Team


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

    [2003-08-06 20:03:38] gwang at litespeedtech dot com

    This bug has not been fixed yet in 4.3.3RC2.

    Regards,
    LiteSpeed Team

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

    [2003-07-07 06:06:50] [email]sniperphp.net[/email]

    Assigned to the maintainer.


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

    [2003-07-04 18:04:00] gwang at litespeedtech dot com

    Also, when I test it with phpinfo(), if the PATH_INFO is not empty,
    PHP_SELF is set to PATH_INFO instead of SCRIPT_NAME, then the PHP and
    Zend logos are missing.

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

    [2003-07-04 16:53:44] gwang at litespeedtech dot com

    Description:
    ------------
    Fast CGI interface is broken in both 4.3.2 4.3.3rc1 and the most recent
    snap shot for web server with Fast CGI implementation that follows CGI
    specification.
    Our LiteSpeed web server (at [url]http://www.litespeedtech.com[/url] ) supports
    PHP through the Fast CGI interface (faster than Apache's mod_php). Our
    Fast CGI implementation follows the CGI specification and set
    environment variables exactly as what Apache's CGI does. It set
    SCRIPT_FILENAME=/docroot/info.php and works fine with 4.3.1, but the
    interface is broken since 4.3.2.
    Our test shows that
    SG(request_info).path_translated
    is not populated with the value of SCRIPT_FILENAME but is NULL.
    Further study shows that the root cause is at cgi-main.c:812 in release
    4.3.2
    > script_path_translated=env_path_translated;
    set script_path_translated to NULL or whatever the value of
    PATH_TRANSLATED. If we take that line out, every thing works fine.
    We can use --enable-discard-path to avoid it but it is forbidden in
    README.FastCGI (We don't know why based on our reading of the source
    code).
    I think one possilbe fix is to avoid that line of code for FastCGI, but
    may need to add some code for Apache's mod_fastcgi. Or change the
    doent, say: --enable-discard-path should be used for web server
    follows CGI Specs.

    Sincerely,
    LiteSpeed Team




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


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

    gwang at litespeedtech dot com Guest

Similar Threads

  1. #24502 [Bgs]: Fast CGI interface is broken
    By gwang at litespeedtech dot com in forum PHP Development
    Replies: 0
    Last Post: September 30th, 03:21 PM
  2. #24502 [Opn]: Fast CGI interface is broken
    By gwang at litespeedtech dot com in forum PHP Development
    Replies: 0
    Last Post: September 29th, 08:08 PM
  3. #24502 [NoF->Opn]: Fast CGI interface is broken
    By gwang at litespeedtech dot com in forum PHP Development
    Replies: 0
    Last Post: September 29th, 08:06 PM
  4. #24502 [Fbk->NoF]: Fast CGI interface is broken
    By sniper@php.net in forum PHP Development
    Replies: 0
    Last Post: September 29th, 10:01 AM
  5. #24502 [Asn->Fbk]: Fast CGI interface is broken
    By sniper@php.net in forum PHP Development
    Replies: 0
    Last Post: September 24th, 04:05 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