#35023 [Opn->Fbk]: invalid insert query causes crash with user defined function
| From: | pookey@php.net | Date: | Sun, 30 Oct 2005 13:39:45 +0000 |
| Subject: | #35023 [Opn->Fbk]: invalid insert query causes crash with user defined function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87212@lists.php.net to get a copy of this message | ||
ID: 35023
Updated by: pookey@php.net
Reported By: mark-phpbugs at vectrex dot org dot uk
-Status: Open
+Status: Feedback
Bug Type: SQLite related
Operating System: Linux 2.6, Debian
PHP Version: 5.0.5
New Comment:
appears to result in
Warning: SQLiteDatabase::queryExec(): no such column:
admin in /home/pookey/test.php on line 39
on 5.1-RC4.
Mark - please retry with more recent version.
Previous Comments:
------------------------------------------------------------------------
[2005-10-30 13:17:38] mark-phpbugs at vectrex dot org dot uk
Description:
------------
When using a user defined function, a badly formed insert
query crashes PHP. Normally this query would (correctly) generate a SQL
error.
Reproduce code:
---------------
http://www.gensortium.com/~mark/sqlitetest.php.txt
Expected result:
----------------
Should give a PHP warning, with an SQL error (invalid column or
something)
Actual result:
--------------
PHP Apache process crashes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35023&edit=1