|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35023 invalid insert query causes crash with user defined function
Submitted: 2005-10-30 13:17 UTC Modified: 2005-10-30 15:14 UTC
From: mark-phpbugs at vectrex dot org dot uk Assigned:
Status: Closed Package: SQLite related
PHP Version: 5.0.5 OS: Linux 2.6, Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
26 + 5 = ?
Subscribe to this entry?

 [2005-10-30 13:17 UTC] mark-phpbugs at vectrex dot org dot uk
When using a user defined function, a badly formed insert
query crashes PHP. Normally this query would (correctly) generate a SQL error.

Reproduce code:

Expected result:
Should give a PHP warning, with an SQL error (invalid column or something)

Actual result:
PHP Apache process crashes


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-30 14:39 UTC]
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 15:14 UTC] mark-phpbugs at vectrex dot org dot uk
I've tested this in 5.1.0 RC4, appears to work fine in this version.


PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 14:05:44 2022 UTC