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

From: Date: Tue, 06 Oct 2015 00:18:57 +0000
Subject: Bug #70642 [Fbk->Opn]: $_SERVER['SCRIPT_NAME'] includes drive letter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196414@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 User updated by: hiitsaaron at googlemail dot com Reported by: hiitsaaron at googlemail dot com Summary: $_SERVER['SCRIPT_NAME'] includes drive letter -Status: Feedback +Status: Open Type: Bug Package: *General Issues Operating System: Windows 7 64-bit PHP Version: 5.6.14 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#196414) next »