Bug #66191 [Nab->Opn]: relative paths are not handled correctly

From: Date: Thu, 09 Feb 2017 11:53:12 +0000
Subject: Bug #66191 [Nab->Opn]: relative paths are not handled correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207233@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66191&edit=1

 ID:                 66191
 Updated by:         johannes@php.net
 Reported by:        jakoch at web dot de
 Summary:            relative paths are not handled correctly
-Status:             Not a bug
+Status:             Open
 Type:               Bug
 Package:            Built-in web server
 Operating System:   Windows
 PHP Version:        5.4.22
 Block user comment: N
 Private report:     N

 New Comment:

As said the relative handling comes from the client. But there is indeed a bug:

On a "GET application" the server has to do a redirect (304?) to "application/"
in case this is a directory.


Previous Comments:
------------------------------------------------------------------------
[2017-02-09 05:19:28] nerax3s at gmail dot com

This is definitely a bug but still marked as "Not a bug" and not fixed as of PHP 5.6.30 .

------------------------------------------------------------------------
[2016-05-20 09:16:45] bobvantoorn at gmail dot com

I'd hate to say '+1', but this bug is still set to status 'not a bug'. I am
experiencing the same problem with PHP 5.6.

Please take another look at the ticket description and at useful comments that were added since it
was marked as 'not a bug'.

Thanks!

------------------------------------------------------------------------
[2014-09-12 15:11:12] ibit dot zee at gmail dot com

I can confirm this problem is real for relative links...

Same app tested with several other Server IIS5/IIS6/IIS7 and Apache works ok...

PHP internal server is trying to find the resource indicated by the relative path always in the
parent folder...

try also with './*' prefix, no prefix, only works with absolute path... and this is very
annoying... please fix (php 5.3x)

------------------------------------------------------------------------
[2014-09-10 14:11:58] magnusthorek at gmail dot com

I can confirm this too. There is even a post of mine in Stack Overflow
(http://stackoverflow.com/questions/25095425/php-built-in-webserver-and-relative-paths) detailing a
whole scenario mainly based in relative paths that does not work as expected.

And it's not only with this application I developed. phpMyAdmin also relies on relative paths
to load their CSS and JS and the "." is being resolved as one level above, right after the
port definition, instead of the current accessed by browser.

------------------------------------------------------------------------
[2014-04-05 00:03:00] steve at steveorevo dot com

I can confirm this. Doesn't happen with Apache or Nginx, but visiting a page without the
trailing slash causes subsequent links to fail.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=66191


--
Edit this bug report at https://bugs.php.net/bug.php?id=66191&edit=1


Thread (12 messages)

« previous php.bugs (#207233) next »