|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-26 18:02 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 27 21:00:01 2025 UTC |
Description: ------------ With get_magic_quotes_gpc() on it acts as if its still off as far as actual functionality goes. If i use the code if (!get_magic_quotes_gpc()) { $theValue = addslashes($theValue); } It will obviously skip it expecting magic quotes to take over but in FACT it isnt escaping anything. Reproduce code: --------------- $value = "test's" if (!get_magic_quotes_gpc()) { $theValue = addslashes($theValue); } $query = "INSERT INTO table set field = "'".$value."'"; Expected result: ---------------- test's shoudl become test\'s Actual result: -------------- test's becomes test's