From:             gk at gknw dot de
Operating system: at least NetWare, Win32
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  _ENV vars get espcaped when magic_quotes_gpc is on

Description:
------------
With PHP 4.3.x and 4.4.x the _ENV superglobals get escaped if they contain
backslahes and magic_quotes_gpc is on.
This does happen with the Apache SAPI as well as with the CLI on
commandline. When I getenv() same environment vars this doesnt happen.
Also compared to PHP 5.2.x where this doesnt happen - regardless of the
magic_quotes_gpc setting.
I digged through the docu but couldnt find anything about this 'feature'
mentioned with 4.x, nor the difference that it was dropped with 5.x.


Expected result:
----------------
I think this 'feature' should be mentioned in the docu, and the difference
between 4.x and 5.x behaviour, also because with 4.x magic_quotes_gpc is on
by default.



-- 
Edit bug report at http://bugs.php.net/?id=40586&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40586&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40586&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40586&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40586&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40586&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40586&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40586&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40586&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40586&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40586&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40586&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40586&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40586&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40586&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40586&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40586&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40586&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40586&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40586&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40586&r=mysqlcfg

Reply via email to