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

From: Date: Mon, 05 Oct 2015 23:12:31 +0000
Subject: Bug #70642 [Opn->Fbk]: $_SERVER['SCRIPT_NAME'] includes drive letter
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196413@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: requinix@php.net Reported by: hiitsaaron at googlemail dot com Summary: $_SERVER['SCRIPT_NAME'] includes drive letter -Status: Open +Status: Feedback 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: Which SAPI? (eg, CLI, CGI, Apache module, FPM) Previous Comments: ------------------------------------------------------------------------ [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 (#196413) next »