#35864 [NEW]: mysql_real_escape_string() produces unexpected results
| From: | notepad at codewalkers dot com | Date: | Sat, 31 Dec 2005 19:23:32 +0000 |
| Subject: | #35864 [NEW]: mysql_real_escape_string() produces unexpected results | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-91315@lists.php.net to get a copy of this message | ||
From: notepad at codewalkers dot com
Operating system: IIS, Apache
PHP version: 5.1.1
PHP Bug Type: MySQL related
Bug description: mysql_real_escape_string() produces unexpected results
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: |
--
Edit bug report at http://bugs.php.net/?id=35864&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35864&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35864&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35864&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35864&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35864&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35864&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35864&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35864&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35864&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35864&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35864&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35864&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35864&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35864&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35864&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35864&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35864&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35864&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35864&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35864&r=mysqlcfg