php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72484 SCRIPT_FILENAME shows wrong path if the user specify router.php
Submitted: 2016-06-24 08:58 UTC Modified: -
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jumueowy at teleosaurs dot xyz Assigned:
Status: Closed Package: Built-in web server
PHP Version: 7.0.8 OS: Windows
Private report: No CVE-ID:
 [2016-06-24 08:58 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-25 01:08 UTC] laruence@php.net
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)
 [2016-06-25 01:08 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-07-06 05:47 UTC] davey@php.net
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)
 [2016-07-20 11:30 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Wed Jul 26 14:01:37 2017 UTC