Skip to content

Fixed bug #62060 (Built-in web server mismatch index files) - #84

Closed
reeze wants to merge 1 commit into
php:PHP-5.4from
reeze:fix-cli-server-route
Closed

reeze wants to merge 1 commit into
php:PHP-5.4from
reeze:fix-cli-server-route

Conversation

@reeze

@reeze reeze commented May 18, 2012

Copy link
Copy Markdown
Contributor

See: https://bugs.php.net/bug.php?id=62060

Start web server without router
when accessing url like localhost/exists-dir/no-such-dir will be 200 if there is a index file in web root or in exists-dir,It should be 404.

@laruence will you take look please.

Thanks.

@php-pulls

Copy link
Copy Markdown

Hi:
it's not a bug, it's by design, for supporting PATH_INFO in built
in webserver

see: 8d46756

thanks

On Sat, May 19, 2012 at 2:00 AM, Reeze Xia
reply@reply.github.com
wrote:

See: https://bugs.php.net/bug.php?id=62060

Start web server without router
when accessing url like localhost/exists-dir/no-such-dir will be 200 if there is a index file in web root or in exists-dir,It should be 404.

@laruence will you take  look please.

Thanks.

You can merge this Pull Request by running:

 git pull https://github.com/reeze/php-src fix-cli-server-route

Or you can view, comment on it, or merge it online at:

 #84

-- Commit Summary --

  • Fixed bug #62060 (Built-in web server mismatch index files)

-- File Changes --

M sapi/cli/php_cli_server.c (18)
M sapi/cli/tests/php_cli_server_009.phpt (35)
M sapi/cli/tests/php_cli_server_010.phpt (12)
A sapi/cli/tests/php_cli_server_018.phpt (121)

-- Patch Links --

 https://github.com/php/php-src/pull/84.patch
 https://github.com/php/php-src/pull/84.diff


Reply to this email directly or view it on GitHub:
#84

Git Pull Requests Mailing List (https://github.com/php)
To unsubscribe, visit: http://www.php.net/unsub.php

Laruence  Xinchen Hui
http://www.laruence.com/

@php-pulls

Copy link
Copy Markdown

Comment on behalf of laruence at php.net:

not a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants