#28112 [Opn]: sqlite_query() crashing apache on malformed query
| From: | csaba at alum dot mit dot edu | Date: | Thu, 22 Apr 2004 22:12:01 +0000 |
| Subject: | #28112 [Opn]: sqlite_query() crashing apache on malformed query | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58599@lists.php.net to get a copy of this message | ||
ID: 28112
User updated by: csaba at alum dot mit dot edu
Reported By: csaba at alum dot mit dot edu
Status: Open
Bug Type: SQLite related
Operating System: Win 2K Pro
PHP Version: 5CVS-2004-04-22 (dev)
New Comment:
Doggone it. The title was supposed to be sqlite_array_query() crashing
apache on malformed query.
Previous Comments:
------------------------------------------------------------------------
[2004-04-23 00:10:10] csaba at alum dot mit dot edu
Description:
------------
apache dies on an empty query (Apache.exe has generated errors and will
be closed by Windows ...).
Note that it does not die if the second line in the code below is
missing [sqlite_query ($db, "create table frob ..." ]. Also,
sqlite_query did OK.
Csaba Gabor
PS. Note that this appears similar to bug 25502 at
http://bugs.php.net/bug.php?id=25502
Reproduce code:
---------------
if (!($db = sqlite_open(":memory:", 666, $error))) die ("Couldn't open
the database");
sqlite_query($db, "create table frob (foo INTEGER PRIMARY KEY, bar
text);");
$res = sqlite_array_query($db, "");
print "passed";
Expected result:
----------------
I wouldn't expect more than a warning. Taking the entire server down
seems extreme.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28112&edit=1