Edit report at https://bugs.php.net/bug.php?id=55371&edit=1
ID: 55371
Comment by: mah11ahm at hotmail dot com
Reported by: thbley at gmail dot com
Summary: get_magic_quotes_gpc() throws deprecation warning
Status: Closed
Type: Bug
Package: Safe Mode/open_basedir
Operating System: Win7 6.1.7600
PHP Version: 5.4.0alpha3
Assigned To: dsp
Block user comment: N
Private report: N
New Comment:
My opinion that transcends that disable line 7 as follows, where I have is
version 5.4 (put comment symble) and save then press (live view ) if using
dreamwaver or run it on internet explorer
/* if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}*/
Previous Comments:
------------------------------------------------------------------------
[2011-11-22 13:11:07] [email protected]
Automatic comment from SVN on behalf of pierrick
Revision: http://svn.php.net/viewvc/?view=revision&revision=319679
Log: Those functions are not deprecated (r319249 #55371)
------------------------------------------------------------------------
[2011-11-15 13:27:13] [email protected]
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Thanks david, patch applied.
------------------------------------------------------------------------
[2011-11-15 13:22:42] [email protected]
Automatic comment from SVN on behalf of dsp
Revision: http://svn.php.net/viewvc/?view=revision&revision=319249
Log: Fixed bug #55371 (get_magic_quotes_gpc() throws deprecation warning.)
Patch by David Zuelke <david dot zuelke at bitextender dot com>
------------------------------------------------------------------------
[2011-11-15 13:09:43] [email protected]
Let me clarify this pointer. Getter should not raise any warning. Setters do.
------------------------------------------------------------------------
[2011-11-15 13:01:45] david dot zuelke at bitextender dot com
A warning definitely is a bad idea, it makes it impossible to write portable
code
to detect magic quotes without version check stunts. It's fine if the two
functions simply return false forever, there's not even a need to remove them
as
they don't do any harm whatsoever.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=55371
--
Edit this bug report at https://bugs.php.net/bug.php?id=55371&edit=1