php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35864 mysql_real_escape_string() produces unexpected results
Submitted: 2005-12-31 20:23 UTC Modified: 2005-12-31 20:40 UTC
From: notepad at codewalkers dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.1.1 OS: IIS, Apache
Private report: No CVE-ID: None
 [2005-12-31 20:23 UTC] notepad at codewalkers dot com
Description:
------------
passing the value 0x7c00 through mysql_real_escape_string() inserts weird characters in my database.

Reproduce code:
---------------
i'm not sure if this is a bug or not but i don't understand it. my test code is over 20 lines long so here is a link further describing the problem along with code:
http://codewalkers.com/forum/index.php?action=displaythread&forum=sqlhelp&id=2252&realm=default

i have tried code on both Apache and ISS with the latest versions of PHP.

Expected result:
----------------
i expect "0x7c00" to be inserted, but it is not.

Actual result:
--------------
rather than getting: 0x7c00
i get: |

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-31 20:40 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 12:01:31 2024 UTC