#33499 [Opn->Csd]: CGI Error on using a wrong SQL Table-Name
ID: 33499
Updated by: tony2001@php.net
Reported By: master-bx at counterstrike dot de
-Status: Open
+Status: Closed
Bug Type: SQLite related
Operating System: Windows XP SP2 Professional
PHP Version: 5.0.4
New Comment:
Works fine -> closed.
Previous Comments:
------------------------------------------------------------------------
[2005-06-28 17:43:25] master-bx at counterstrike dot de
Thanks alot, the bug is fixed inside the latest snapshot.
Both Php-versions are using SQLite 2.8.14, so i think it's been a Php
related bug.
------------------------------------------------------------------------
[2005-06-28 17:08:45] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-06-28 17:07:10] master-bx at counterstrike dot de
Description:
------------
When sending a query to SQLite whith Table-Names that doesn't exist
there is no Error Message from Php or SQLite, but CGI seems to crash
and Apache shows a 500 error-page.
Reproduce code:
---------------
<?php
$query = "SELECT abcd.test FROM abcd ORDER BY ab.test";
$data = sqlite_query($con, $query);
$result = sqlite_fetch_array($data,SQLITE_ASSOC);
var_dump($result);
?>
Expected result:
----------------
any error reported by sqlite and/or php
Actual result:
--------------
cgi crashes and apache shows error-page 500
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33499&edit=1
Thread (4 messages)