#38040 [NEW]: php_self incorrect in cgi mode
From: php at jon dot limedaley dot com
Operating system: Debian Linux testing
PHP version: 5.1.4
PHP Bug Type: CGI related
Bug description: php_self incorrect in cgi mode
Description:
------------
This is a duplicate of #31892, but I am not sure if anyone will see that
old bug? I don't know the code well enough to know if that patch
submitted is perfectly fine to include in the main code. Can someone
check to see if it looks alright?
I am unable to use php5 in cgi mode due to php_self not being correctly
reported.
I can provide an example or a login if it is unclear what is happening.
I see Bug #31843, but I don't understand the response. I should just
change all scripts to not use $php_self? I guess I could make my own
php_self my appending $SCRIPT_FILENAME.$PATH_INFO? Is there any reason
why this isn't fixed? ie. does anyone use PHP_SELF in its current form,
who would notice if it was changed back to its old behavior?
Reproduce code:
---------------
echo $_SERVER['PHP_SELF']
Expected result:
----------------
the actual script path.
Actual result:
--------------
NULL
--
Edit bug report at http://bugs.php.net/?id=38040&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38040&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38040&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38040&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38040&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38040&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38040&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38040&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38040&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38040&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38040&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38040&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38040&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38040&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38040&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38040&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38040&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38040&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38040&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38040&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38040&r=mysqlcfg
Thread (9 messages)
- php at jon dot limedaley dot com