|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-19 03:25 UTC] hhhahn at gmail dot com
[2012-06-11 13:42 UTC] felipe@php.net
[2012-06-11 13:42 UTC] felipe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: felipe
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 14:00:01 2025 UTC |
Description: ------------ I try this code on three different systems (different PHP versions, Debian/Red Hat, etc.), but the SQLite version always 1.0.3 (libversion 2.8.14). Earlier versions works well. But this new version the result is the same: Sometimes runs until end, but sometimes, different places generate warnings. I mean, the bug in the sqlite_escape_string function, if passed an empty string. If no warnings, try to increase the loop counter. Reproduce code: --------------- <? set_time_limit(0); dl("sqlite.so"); echo "<h1>Libversion: ".sqlite_libversion()."</h1>"; define("CONN",sqlite_open(":memory:")); sqlite_query(CONN,"create table lufi(duma)"); echo "<h1>Start</h1>"; for ($i=1;$i<=100;$i++) { sqlite_query(CONN,"insert into lufi(duma)values('".sqlite_escape_string("")."')"); } echo "<h1>End</h1>"; $h=sqlite_query(CONN,"select count(*)hany from lufi"); $t=sqlite_fetch_array($h); echo $t["hany"]." success."; ?>