|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-02-10 18:32 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 01:00:01 2025 UTC |
addslashes() inserts either ' or \ depending on the setting of magic_quotes_sybase. stripslashes() ignores magic_quotes_sybase, and only removes \. As a result, ("a'b" == stripslashes(addslashes("a'b"))) succeeds when magic_quotes_sybase = 0, but fails when magic_quotes_sybase = 1.