#33499 [Opn->Fbk]: CGI Error on using a wrong SQL Table-Name

From: Date: Tue, 28 Jun 2005 15:08:45 +0000
Subject: #33499 [Opn->Fbk]: CGI Error on using a wrong SQL Table-Name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81124@lists.php.net to get a copy of this message
ID: 33499 Updated by: tony2001@php.net Reported By: master-bx at counterstrike dot de -Status: Open +Status: Feedback Bug Type: SQLite related Operating System: Windows XP SP2 Professional PHP Version: 5.0.4 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#81124) next »