From:             clehardy at betablue dot net
Operating system: Windows XP Home
PHP version:      4.3.8
PHP Bug Type:     Variables related
Bug description:  SCRIPT_NAME sometimes contains wrong info

Description:
------------
If you add additional path information after the script name (as in
www.domain.com/script.php/passed/arguments/) and the information is a URL
(as in www.domain.com/script.php/http://www.php.net/), then
$_SERVER['SCRIPT_NAME'] will contain '/script.php/http:'.

This has only been tested with Apache 2.0.50 and PHP 4.3.8 in sapi mode
(not CGI).

In my test Linux enviroment, $_SERVER['SCRIPT_NAME'] will contain
'/script.php' as expected, but that seems to be because the URL is
translated to 'www.domain.com/script.php/http:/www.php.net/' (notice only
one slash after http: instead of two).


-- 
Edit bug report at http://bugs.php.net/?id=29948&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29948&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29948&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29948&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29948&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29948&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29948&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29948&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29948&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29948&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29948&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29948&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29948&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29948&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29948&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29948&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29948&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29948&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29948&r=float

Reply via email to