#22583 [Opn->Fbk]: CGI-Version of PHP has 65 Byte limit on path length
| From: | sniper@php.net | Date: | Fri, 07 Mar 2003 18:09:17 +0000 |
| Subject: | #22583 [Opn->Fbk]: 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-35071@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: Feedback
Bug Type: CGI related
Operating System: Linux
PHP Version: 4.3.1
New Comment:
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..)
Previous Comments:
------------------------------------------------------------------------
[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