|  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: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
1 + 13 = ?
Subscribe to this entry?

 [2004-07-22 21:00 UTC] victor-php at boivie dot com
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:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-28 03:39 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat May 15 15:01:25 2021 UTC