note 80097 added to function.mysql-real-escape-string

From: Date: Sat, 29 Dec 2007 03:22:29 +0000
Subject: note 80097 added to function.mysql-real-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-134092@lists.php.net to get a copy of this message
Is there some sort of a bug in mysql_real_escape_string()? I have a script that performs error logging which has been entering blanks in the log table. I came to find out that mysql_real_escape_string() simply removed entire string instead of removing invalid characters. My table's using utf8_general_ci collation and i'm using PHP 5. ---- Server IP: 64.71.164.2 Probable Submitter: 70.136.140.243 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-real-escape-string.php Edit -- https://master.php.net/note/edit/80097 Del: integrated -- https://master.php.net/note/delete/80097/integrated Del: useless -- https://master.php.net/note/delete/80097/useless Del: bad code -- https://master.php.net/note/delete/80097/bad+code Del: spam -- https://master.php.net/note/delete/80097/spam Del: non-english -- https://master.php.net/note/delete/80097/non-english Del: in docs -- https://master.php.net/note/delete/80097/in+docs Del: other reasons-- https://master.php.net/note/delete/80097 Reject -- https://master.php.net/note/reject/80097 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134092) next »