#40586 [Opn->Asn]: _ENV vars get espcaped when magic_quotes_gpc is on

From: Date: Mon, 26 Mar 2007 09:55:49 +0000
Subject: #40586 [Opn->Asn]: _ENV vars get espcaped when magic_quotes_gpc is on
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110779@lists.php.net to get a copy of this message
ID: 40586 Updated by: tony2001@php.net Reported By: gk at gknw dot de -Status: Open +Status: Assigned Bug Type: Strings related Operating System: at least NetWare, Win32 PHP Version: 4.4.x -Assigned To: +Assigned To: tony2001 Previous Comments: ------------------------------------------------------------------------ [2007-03-23 15:56:18] vrana@php.net This behavior is wrong. _gpc stands for GET, POST, COOKIE. ------------------------------------------------------------------------ [2007-02-21 20:30:40] gk at gknw dot de 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 this bug report at http://bugs.php.net/?id=40586&edit=1

« previous php.bugs (#110779) next »