Bug #70642 [Opn->Csd]: $_SERVER['SCRIPT_NAME'] includes drive letter

From: Date: Sat, 10 Oct 2015 10:32:05 +0000
Subject: Bug #70642 [Opn->Csd]: $_SERVER['SCRIPT_NAME'] includes drive letter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196510@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70642&edit=1 ID: 70642 Updated by: ab@php.net Reported by: hiitsaaron at googlemail dot com Summary: $_SERVER['SCRIPT_NAME'] includes drive letter -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: Windows 7 64-bit PHP Version: 5.6.14 -Assigned To: +Assigned To: ab Block user comment: N Private report: N New Comment: Ok, since you cannot reproduce it anymore, closing. Please feel free to report again if the misbehavior persists. I myself couldn't reproduce it myself as well, with IIS and Apache. Thanks. Previous Comments: ------------------------------------------------------------------------ [2015-10-06 00:18:56] hiitsaaron at googlemail dot com Apache 2.4.9 from ApacheLounge http://www.apachelounge.com/download/ Server version: Apache/2.4.9 (Win64) Apache Lounge VC11 Server built: Mar 16 2014 12:42:59 Architecture: 64-bit and php 5.5.10 from http://windows.php.net/download PHP 5.5.10 (cli) (built: Mar 5 2014 14:49:07) Although, I've just been doing some housecleaning and I've updated all these to Apache/2.4.16 (Win64) and PHP 5.6.14 and the issue has gone away *yay*. All $_SERVER variables look good, and normal. I still have a back up of my original builds that this happened if anyone is interested, I can try and set them back up again and re-attempt to create this bug. But personally this is solved for me. ------------------------------------------------------------------------ [2015-10-05 23:12:31] requinix@php.net Which SAPI? (eg, CLI, CGI, Apache module, FPM) ------------------------------------------------------------------------ [2015-10-05 12:16:34] hiitsaaron at googlemail dot com Description: ------------ $_SERVER['SCRIPT_NAME'] reports incorrect location as it includes the drive letter. Test script: --------------- <?php echo '$_SERVER[\'SCRIPT_NAME\'] // ' . $_SERVER['SCRIPT_NAME']; ?> Expected result: ---------------- $_SERVER['SCRIPT_NAME'] // index.php Actual result: -------------- $_SERVER['SCRIPT_NAME'] // C:/index.php ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70642&edit=1

« previous php.bugs (#196510) next »