#20384 [Opn->Bgs]: magic_quotes_sybase = on sorta turns magic_quotes_gpc off
| From: | sander@php.net | Date: | Tue, 12 Nov 2002 11:50:39 +0000 |
| Subject: | #20384 [Opn->Bgs]: magic_quotes_sybase = on sorta turns magic_quotes_gpc off | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24678@lists.php.net to get a copy of this message | ||
ID: 20384
Updated by: sander@php.net
Reported By: philip@cornado.com
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: all
PHP Version: 4CVS-2002-11-11
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2002-11-12 04:06:00] philip@cornado.com
With the following configuration:
magic_quotes_sybase = on
magic_quotes_gpc = on
Currently (as of php4.3.0-dev) the following behavior exists:
a) Makes GPC foo's into foo''s (as advertised)
b) Doesn't touch foo"s, foo"s remains foo"s. The same can be said for
\ and NUL's as they are unaffected by magic_quotes_gpc when _sybase is
On!
In summary, _sybase takes over _gpc and only ' are escaped. The rest
remain untouched as if _gpc is off. This behavior is unexpected to me
as I would still expect magic_quotes_gpc to affect ", \ and NUL's.
get_magic_quotes_gpc() still returns true even when ", \ and NUL's are
not escaped, this seems odd. I haven't seen one quotes management
solution out there in phpland that takes into account _sybase so am a
little worried.
Proposal:
If both _gpc and _sybase are On:
a) foo's turns to foo''s as advertised (like current)
b) magic_quotes_gpc will still affect everything else except single
quotes, with backslashes.
Regarding BC. I'm not sure if this change will affect BC nor am I all
that familiar with Sybase or character escaping in general so please
comment. I vote the above proposal is discussed and if approved
implemented into PHP 4.3.0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20384&edit=1