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: 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:
MUST BE VALID
Solve the problem:
45 - 34 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 07:01:29 2024 UTC