Bug #75604 [Opn->Asn]: Router script looked up relative to webroot

From: Date: Thu, 30 Nov 2017 17:56:23 +0000
Subject: Bug #75604 [Opn->Asn]: Router script looked up relative to webroot
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212847@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75604&edit=1 ID: 75604 Updated by: cmb@php.net Reported by: cmb@php.net Summary: Router script looked up relative to webroot -Status: Open +Status: Assigned Type: Bug Package: Built-in web server Operating System: Windows 10 PHP Version: 7.2.0 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: Laruence, can you please have a look at this issue? Previous Comments: ------------------------------------------------------------------------ [2017-11-30 17:56:01] cmb@php.net 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 this bug report at https://bugs.php.net/bug.php?id=75604&edit=1

« previous php.bugs (#212847) next »