php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55134 index.html has greater priority than index.php
Submitted: 2011-07-05 03:42 UTC Modified: 2011-07-23 17:15 UTC
From: frederic dot hardy at mageekbox dot net Assigned: moriyoshi (profile)
Status: Closed Package: Built-in web server
PHP Version: 5.4SVN-2011-07-05 (SVN) OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: frederic dot hardy at mageekbox dot net
New email:
PHP Version: OS:

 

 [2011-07-05 03:42 UTC] frederic dot hardy at mageekbox dot net
Description:
------------
When a directory contains index.html and index.php, built-in web server send to the client index.html, instead of index.php.

Test script:
---------------
Pour in the root directory of the built-in web server index.html and index.php.
Launght the built-in web server with php -S localhost:8080.
Go to http://localhost:8080.

Expected result:
----------------
Result of execution of index.php.

Actual result:
--------------
Contents of index.html.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-05 03:47 UTC] aharvey@php.net
-Summary: index.html has greater priority than index.html +Summary: index.html has greater priority than index.php
 [2011-07-05 13:30 UTC] iliaa@php.net
-Status: Open +Status: Bogus
 [2011-07-05 13:30 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This has to do with your web server config, not PHP.
 [2011-07-05 13:34 UTC] aharvey@php.net
-Status: Bogus +Status: Open
 [2011-07-05 13:34 UTC] aharvey@php.net
This is to do with the new built-in Web server, not a standalone one.
 [2011-07-05 14:32 UTC] sixd@php.net
-Assigned To: +Assigned To: moriyoshi
 [2011-07-23 17:12 UTC] sixd@php.net
Automatic comment from SVN on behalf of sixd
Revision: http://svn.php.net/viewvc/?view=revision&revision=313637
Log: Swap .html & .php order to match Moriyoshi's fix for bug 55134
in http://svn.php.net/viewvc?view=revision&revision=313627
 [2011-07-23 17:15 UTC] sixd@php.net
-Status: Assigned +Status: Closed
 [2011-07-23 17:15 UTC] sixd@php.net
Fixed by Moriyoshi in http://svn.php.net/viewvc?view=revision&revision=313627
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 04:01:24 2020 UTC