php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22583 CGI-Version of PHP has 65 Byte limit on path length
Submitted: 2003-03-07 03:44 UTC Modified: 2003-03-14 10:09 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: brunni at netestate dot de Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 4.3.1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: brunni at netestate dot de
New email:
PHP Version: OS:

 

 [2003-03-07 03:44 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-07 07:33 UTC] cg at gordimer dot net
Here it works perfectly on Win2k with IIS/CGI. No problems with long paths.

Christoph
 [2003-03-07 12:09 UTC] 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-13 12:17 UTC] 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-14 02:28 UTC] 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-14 10:09 UTC] sniper@php.net
We can't reproduce this -> fixed.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 14:01:29 2024 UTC