note 52454 added to function.mysql-real-escape-string
| From: | laacz at laacz dot lv | Date: | Mon, 02 May 2005 09:55:44 +0000 |
| Subject: | note 52454 added to function.mysql-real-escape-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88856@lists.php.net to get a copy of this message | ||
There is an error in function reference. Sentence is:
mysql_real_escape_string() calls MySQL's library function mysql_escape_string, which prepends
backslashes to the following characters: NULL, \x00, \n, \r, \, ', " and \x1a.
But MySQL manual for mysql_real_escape_string API function states, that:
Characters encoded are NUL (ASCII 0), '\n', '\r', '\',
''', '"', and Control-Z.
http://dev.mysql.com/doc/mysql/en/mysql-real-escape-string.html
Note that NULL withing string is NOT encoded in any way. And PHP interpreter calls
mysql_real_esacpe_string, NOT mysql_escape_string.
----
Manual Page -- http://www.php.net/manual/en/function.mysql-real-escape-string.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52454
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52454&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52454&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52454&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52454&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52454&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52454&report=yes
Search -- http://master.php.net/manage/user-notes.php