Edit report at http://bugs.php.net/bug.php?id=42262&edit=1
ID: 42262 Updated by: j...@php.net Reported by: spam2 at rhsoft dot net Summary: get_magic_quotes_gpc() should be there and return false -Status: Open +Status: Bogus Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: All PHP Version: 6CVS-2007-08-09 (snap) Block user comment: N Private report: N New Comment: No longer issue since the PHP 6 branch was discarded. Previous Comments: ------------------------------------------------------------------------ [2008-03-02 05:36:35] phi...@php.net Still being discussed... and the thread in question decided to keep them AFAICT. Where else was a decision made on this? http://marc.info/?l=php-internals&m=114177891420914&w=2 ------------------------------------------------------------------------ [2008-02-05 11:34:54] paj...@php.net Hi Philip, see the "Remove magic_quotes and register global" thread two years ago. The functions (there is more than the getter) can't exist anymore as the underlying features do not exist anymore. Using them (in all bad possible bad ways) can end in a rather unexpected result if they don't check return values (setter). A simple if (php_version >= 6) does the job and makes it clear in your code. Still no bug sorry (that means bogus here). ------------------------------------------------------------------------ [2008-02-05 04:02:18] phi...@php.net As the reporter mentioned outside this report, NEWS indicates this function should exist whereas various bug reports say it shouldn't, and I cannot find the decision on internals... For now we must consider NEWS as the authority in which case this function should exist so please update NEWS if this has changed and regardless it will then be documented. And since it (php5) returns 0 or 1, I reckon if it exists it should return 0 and not false. ------------------------------------------------------------------------ [2008-02-04 13:41:01] paj...@php.net > still not bug, please see php.internals archive for the discussion about this change. ------------------------------------------------------------------------ [2008-02-04 13:17:35] msara...@php.net Hello, The behavior of get_magic_quotes_gpc has changed. Check the NEWS file: "Changed get_magic_quotes_gpc(), get_magic_quotes_runtime to always return false and set_magic_quotes_runtime() to raise an E_CORE_ERROR." ------------------------------------------------------------------------ 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 http://bugs.php.net/bug.php?id=42262 -- Edit this bug report at http://bugs.php.net/bug.php?id=42262&edit=1