#22583 [Opn->Csd]: CGI-Version of PHP has 65 Byte limit on path length
| From: | sniper@php.net | Date: | Fri, 14 Mar 2003 16:09:38 +0000 |
| Subject: | #22583 [Opn->Csd]: CGI-Version of PHP has 65 Byte limit on path length | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35602@lists.php.net to get a copy of this message | ||
ID: 22583
Updated by: sniper@php.net
Reported By: brunni at netestate dot de
-Status: Open
+Status: Closed
Bug Type: CGI related
Operating System: Linux
PHP Version: 4.3.1
New Comment:
We can't reproduce this -> fixed.
Previous Comments:
------------------------------------------------------------------------
[2003-03-14 02:28:03] brunni at netestate dot de
I am still experiencing the bug. I do not have the time
to compile and test your latest snapshot. If you send me a
x86-linux binary of the CGI-version, i can see if it has
the problem.
I have migrated the critical servers to the module-version
of PHP. It does not have these problems.
------------------------------------------------------------------------
[2003-03-13 12:17:02] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-03-07 12:09:17] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Lot has changed since 4.3.1 in this snapshot (for CGI) so please test
first that this happens also with it.
(I can't reproduce this either..)
------------------------------------------------------------------------
[2003-03-07 07:33:23] cg at gordimer dot net
Here it works perfectly on Win2k with IIS/CGI. No problems with long
paths.
Christoph
------------------------------------------------------------------------
[2003-03-07 03:44:05] brunni at netestate dot de
If I try to call the URL
http://cube.netestate.de/cccccccccccccccccccccccc/test.php
php logs this to syslog:
Mar 7 10:38:22 roja php: PHP Fatal error: Unknown(): Unable to open
/home/www/cube.netestate.de/data/ccccccccccccccccccccccc\221^A in
Unknown on line 0
If I mv cccccccccccccccccccccccc to ccccccccccccccccccccccc
and call the URL with one 'c' less, it works.
If i set /cbi-bin/printenv.cgi as interpreter instead of /cgi-bin/php
and call the URL causing problems, i get this:
QUERY_STRING =
SERVER_ADDR = 195.30.92.56
HTTP_ACCEPT_LANGUAGE = en-us, en;q=0.50
SERVER_PROTOCOL = HTTP/1.1
HTTP_CONNECTION = keep-alive
PATH_TRANSLATED =
/home/www/cube.netestate.de/data/cccccccccccccccccccccccc/test.php
REMOTE_PORT = 1129
HTTP_ACCEPT =
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
HTTP_USER_AGENT = Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1)
Gecko/20020826
GATEWAY_INTERFACE = CGI/1.1
HTTP_HOST = cube.netestate.de
PATH_INFO = /cccccccccccccccccccccccc/test.php
SERVER_SOFTWARE = Apache/1.3.27 Ben-SSL/1.48 (Unix) mod_jk
SERVER_ADMIN = brunni@netestate.de
REMOTE_ADDR = 195.30.92.1
SCRIPT_NAME = /cgi-bin/printenv.cgi
SERVER_NAME = cube.netestate.de
HTTP_ACCEPT_ENCODING = gzip, deflate, compress;q=0.9
DOCUMENT_ROOT = /home/www/cube.netestate.de/data
REQUEST_URI = /cccccccccccccccccccccccc/test.php
HTTP_ACCEPT_CHARSET = ISO-8859-1, utf-8;q=0.66, *;q=0.66
REDIRECT_STATUS = 200
REQUEST_METHOD = GET
REDIRECT_URL = /cccccccccccccccccccccccc/test.php
SCRIPT_FILENAME = /home/www/cube.netestate.de/cgi-bin/printenv.cgi
HTTP_KEEP_ALIVE = 300
PATH = /usr/local/bin:/usr/bin:/bin
SERVER_PORT = 80
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22583&edit=1