#35023 [Fbk->Csd]: invalid insert query causes crash with user defined function

From: Date: Sun, 30 Oct 2005 14:14:05 +0000
Subject: #35023 [Fbk->Csd]: invalid insert query causes crash with user defined function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87215@lists.php.net to get a copy of this message
ID: 35023 User updated by: mark-phpbugs at vectrex dot org dot uk Reported By: mark-phpbugs at vectrex dot org dot uk -Status: Feedback +Status: Closed Bug Type: SQLite related Operating System: Linux 2.6, Debian PHP Version: 5.0.5 New Comment: I've tested this in 5.1.0 RC4, appears to work fine in this version. Closed Mark Previous Comments: ------------------------------------------------------------------------ [2005-10-30 14:39:43] pookey@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#87215) next »