Bug #72484 [Opn->Csd]: SCRIPT_FILENAME shows wrong path if the user specify router.php
| From: | laruence@php.net | Date: | Sat, 25 Jun 2016 01:08:41 +0000 |
| Subject: | Bug #72484 [Opn->Csd]: SCRIPT_FILENAME shows wrong path if the user specify router.php | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201838@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72484&edit=1
ID: 72484
Updated by: laruence@php.net
Reported by: jumueowy at teleosaurs dot xyz
Summary: SCRIPT_FILENAME shows wrong path if the user specify
router.php
-Status: Open
+Status: Closed
Type: Bug
Package: Built-in web server
Operating System: Windows
PHP Version: 7.0.8
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0183a9af5ac6e186d554634b854a3a86d5830d6d
Log: Fixed bug #72484 (SCRIPT_FILENAME shows wrong path if the user specify router.php)
Previous Comments:
------------------------------------------------------------------------
[2016-06-24 08:58:31] jumueowy at teleosaurs dot xyz
Description:
------------
F:/Some/Dir/PHP/php.exe -S 127.0.0.1:8888 -t W:/Web/Dir/root W:/Web/Dir/root/router.php
(meaning: PHP must use /root as directory. And use router.php as a simple check.)
Test script:
---------------
router.php
---
<?php
print_r($_SERVER);
?>
---
Expected result:
----------------
[SCRIPT_FILENAME] => W:/Web/Dir/root/router.php
Actual result:
--------------
[SCRIPT_FILENAME] => W:\Web\Dir\root/W:/Web/Dir/root/router.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72484&edit=1