Bug #66191 [NEW]: relative paths are not handled correctly

From: Date: Thu, 28 Nov 2013 15:22:54 +0000
Subject: Bug #66191 [NEW]: relative paths are not handled correctly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182988@lists.php.net to get a copy of this message
From: jakoch at web dot de Operating system: Windows PHP version: 5.4.22 Package: Built-in web server Bug Type: Bug Bug description:relative paths are not handled correctly Description: ------------ I believe that relative paths are not handled correctly by the embedded server. I have this in my index.html file: <link href="assets/css/bootstrap.css" rel="stylesheet"> The file resides in /www/application. Served by php -S localhost:90 -t c:\www. When i browse http://localhost:90/application the css is not loaded. The URL is not resolved to http://localhost:90/application/assets/css/bootstrap.css, but http://localhost:90/assets/css/bootstrap.css. Resulting in a resource not found error. The domain/URI of the current document is not taken into account. http://www.w3.org/TR/html401/struct/links.html 12.4.1 Resolving relative URIs 3)"By default, the base URI is that of the current document. The base URI is not the the root of the server. Screenshot: http://i.imgur.com/1KDW42G.jpg -- Edit bug report at https://bugs.php.net/bug.php?id=66191&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66191&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66191&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66191&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66191&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66191&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66191&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66191&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66191&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66191&r=support Expected behavior: https://bugs.php.net/fix.php?id=66191&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66191&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66191&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66191&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66191&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66191&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66191&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66191&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66191&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66191&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66191&r=mysqlcfg

« previous php.bugs (#182988) next »