#14843 [Fbk->NoF]: Magic Quotes GPC is broken in 4.1.0

From: Date: Sat, 21 Sep 2002 07:09:19 +0000
Subject: #14843 [Fbk->NoF]: Magic Quotes GPC is broken in 4.1.0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19966@lists.php.net to get a copy of this message
ID: 14843 Updated by: sniper@php.net Reported By: richard@alavator.com -Status: Feedback +Status: No Feedback Bug Type: PHP options/info functions Operating System: Linux PHP Version: 4.1.0 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2002-08-17 10:18:56] kalowsky@php.net I believe this was fixed, can you please test a newer version of PHP and confirm/deny this? ------------------------------------------------------------------------ [2002-01-04 02:29:14] richard@alavator.com Here is a script that demonstrates the problem. If you uncomment line 4, magic quotes works consistently. If you do not, then some data (or SOMETHING) will cause it to fail most of the time. <? mysql_pconnect("","",""); // Must fill in db options if (isset($adCode)) { // echo get_magic_quotes_gpc(); $sql="INSERT INTO ad_code set sponsor='{$sponsor}', adCode='{$adCode}', cat='{$cat}'"; echo $sql."<br><br>"; mysql_query($sql); echo mysql_error(); } ?> Try various data with and with single quotes, and many times magic_quotes_qpc will fail to escape the variables. I would be happy to provide access to the actual script and server that caused me to notice this problem. Just email. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14843&edit=1

« previous php.bugs (#19966) next »