Edit report at https://bugs.php.net/bug.php?id=60112&edit=1
ID: 60112
User updated by: info at phpgangsta dot de
Reported by: info at phpgangsta dot de
Summary: If URI does not contain a file, index.php is not
served
Status: Bogus
Type: Bug
Package: Built-in web server
Operating System: Windows 7
PHP Version: 5.4.0beta2
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2011-10-22 14:31:05] [email protected]
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