#41206 [NEW]: get_magic_quotes_gpc() not working
| From: | rayge99 at hotmail dot com | Date: | Thu, 26 Apr 2007 17:43:14 +0000 |
| Subject: | #41206 [NEW]: get_magic_quotes_gpc() not working | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-111965@lists.php.net to get a copy of this message | ||
From: rayge99 at hotmail dot com
Operating system: Linux
PHP version: 4.4.6
PHP Bug Type: *General Issues
Bug description: get_magic_quotes_gpc() not working
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
--
Edit bug report at http://bugs.php.net/?id=41206&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41206&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41206&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41206&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41206&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41206&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41206&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41206&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41206&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41206&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41206&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41206&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41206&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41206&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41206&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41206&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41206&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41206&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41206&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41206&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41206&r=mysqlcfg