|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-24 18:05 UTC] kalle@php.net
[2008-10-24 19:27 UTC] phpbugs at wheelhouse dot org
[2008-10-25 08:20 UTC] kalle@php.net
[2008-10-25 14:19 UTC] phpbugs at wheelhouse dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 14:00:01 2025 UTC |
Description: ------------ This is a bug which has been "fixed in CVS" for nearly three years but still exists in the current "stable" version. It causes bogus results. Please release a new "stable" version of the sqlite PECL extension that fixes this bug and 11050. Reproduce code: --------------- diff -u sqlite.c- sqlite.c --- sqlite.c- Tue May 15 12:53:24 2007 +++ sqlite.c Tue May 15 13:13:50 2007 @@ -1795,12 +1795,14 @@ enclen = sqlite_encode_binary((const unsigned char*)string, stringlen, ret+1); RETVAL_STRINGL(ret, enclen+1, 0); - } else { + } else if (stringlen) { ret = sqlite_mprintf("%q", string); if (ret) { RETVAL_STRING(ret, 1); sqlite_freemem(ret); } + } else { + RETURN_EMPTY_STRING(); } } /* }}} */ Expected result: ---------------- See http://bugs.php.net/bug.php?id=36867