Bug #60112 [Asn->Csd]: If URI does not contain a file, index.php is not served
| From: | laruence@php.net | Date: | Sun, 23 Oct 2011 02:55:59 +0000 |
| Subject: | Bug #60112 [Asn->Csd]: If URI does not contain a file, index.php is not served | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164517@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60112&edit=1
ID: 60112
Updated by: laruence@php.net
Reported by: info at phpgangsta dot de
Summary: If URI does not contain a file, index.php is not
served
-Status: Assigned
+Status: Closed
Type: Bug
Package: Built-in web server
Operating System: Windows 7
PHP Version: 5.4.0beta2
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-10-23 02:54:04] laruence@php.net
Automatic comment from SVN on behalf of laruence
Revision: http://svn.php.net/viewvc/?view=revision&revision=318332
Log: Fixed bug #60112 If URI does not contain a file, index.php is not served
This is a windows Issue.
and after this fix, previously 404 request like "localhost/foo/bar"
now could server correctly with request_uri "index.php" and PATH_INFO
"/foo/bar/"
------------------------------------------------------------------------
[2011-10-22 15:18:23] laruence@php.net
oh, I mis-understand. reopen it, and I will try to reproduce it.
------------------------------------------------------------------------
[2011-10-22 15:12:54] info at phpgangsta dot de
As I said, on linux it is working fine, there is a difference between linux and windows.
There is also this line on the manual page of the webserver:
http://docs.php.net/manual/en/features.commandline.webserver.php
"If a URI request does not specify a file, then either index.php or index.html in the given
directory are returned. If neither file exists, then a 404 response code is returned."
So in my opinion there is a problem.
------------------------------------------------------------------------
[2011-10-22 14:31:05] laruence@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
plz start built-in webserver *with* a router php
php.exe -S localhost:8000 ***.php
------------------------------------------------------------------------
[2011-10-22 14:17:45] info at phpgangsta dot de
Description:
------------
Started the build-in webserver with
php.exe -S localhost:8000
Opening
http://localhost:8000/
in the browser gives me an error message with 404 status code.
On linux the index.php would have been served, like described in the manual.
Btw: http://localhost:8000/index.php works fine.
I'm using
http://windows.php.net/downloads/qa/php-5.4.0beta2-Win32-VC9-x86.zip
Expected result:
----------------
I would expect the index.php to be served (like on linux), but I get a 404:
[Sat Oct 22 16:13:16 2011] ::1:5403 [404]: / - No such file or directory
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60112&edit=1