php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29339 sqlite_escape_string returns bogus data for empty strings on Windows XP
Submitted: 2004-07-22 21:00 UTC Modified: 2004-07-28 03:39 UTC
From: victor-php at boivie dot com Assigned:
Status: Closed Package: SQLite related
PHP Version: 5.0.0 OS: Windows XP
Private report: No CVE-ID:
 [2004-07-22 21:00 UTC] victor-php at boivie dot com
Description:
------------
sqlite_escape_string returns bogus data for empty strings on Windows XP. In FreeBSD with PHP 5.0.0RC2, it works.

Reproduce code:
---------------
php.exe -r "echo sqlite_escape_string('');"

Expected result:
----------------
(nothing)

Actual result:
--------------
a few letters from the lower part of the ASCII table. And they can not easily be shown here.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-28 03:39 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 08:02:33 2014 UTC