Bug #75604 [NEW]: Router script looked up relative to webroot

From: Date: Thu, 30 Nov 2017 17:56:02 +0000
Subject: Bug #75604 [NEW]: Router script looked up relative to webroot
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212846@lists.php.net to get a copy of this message
From: cmb Operating system: Windows 10 PHP version: 7.2.0 Package: Built-in web server Bug Type: Bug Bug description:Router script looked up relative to webroot Description: ------------ Running the built-in webserver with an explicit webroot (-t option) causes the router script to be looked up relative to the webroot, but not to the CWD as before. Apparently, this regression has been introduced when fixing bug #75287[1]. [1] <http://git.php.net/?p=php-src.git;a=commit;h=816758eda2bcdd69ba505fb6bbb79124a7bf2254> Test script: --------------- cd cat router.php start php -S localhost:8080 -t www router.php wget -qO- http://localhost:8080 Expected result: ---------------- c:\php-sdk\phpmaster\vc15\x64 <?php echo 'hi'; hi Actual result: -------------- c:\php-sdk\phpmaster\vc15\x64 <?php echo 'hi'; <br /> <b>Warning</b>: Unknown: failed to open stream: No such file or directory in <b>Unknown</b> on line <b>0</b><br /> <br /> <b>Fatal error</b>: Unknown: Failed opening required 'C:\php-sdk\phpmaster\vc15\x64\www\router.php' (include_path='.;C:\php\pear') in <b>Unknown</b> on line <b>0</b><br /> -- Edit bug report at https://bugs.php.net/bug.php?id=75604&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75604&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75604&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75604&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75604&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75604&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75604&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75604&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75604&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75604&r=support Expected behavior: https://bugs.php.net/fix.php?id=75604&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75604&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75604&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75604&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75604&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75604&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75604&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75604&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75604&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75604&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75604&r=mysqlcfg

« previous php.bugs (#212846) next »