note 107101 deleted from function.mysql-real-escape-string by philip

From: Date: Fri, 04 Sep 2015 20:00:51 +0000
Subject: note 107101 deleted from function.mysql-real-escape-string by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-203668@lists.php.net to get a copy of this message
Note Submitter: ovoznyak at gmail dot com ---- Function safe_string_escape($str) above is not properly working when $str is numeric (not string). For example, when call them as safe_string_escape((int) 12), it returns empty string. At the same time mysql_real_escape_string() returns 12. So, it is safe to add $str = (string) $str; in the begin of function.

« previous php.notes (#203668) next »