ID:               41206
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rayge99 at hotmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Linux
 PHP Version:      4.4.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2007-04-26 17:43:14] rayge99 at hotmail dot com

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 this bug report at http://bugs.php.net/?id=41206&edit=1

Reply via email to