php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mark-phpbugs at vectrex dot org dot uk
New email:
PHP Version: OS:

 

 [2005-10-30 13:17 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-30 14:39 UTC] 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 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.

Closed

Mark
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 18:01:23 2020 UTC