#35552 [NEW]: access violation on any invalid odbc query

From: Date: Mon, 05 Dec 2005 05:15:34 +0000
Subject: #35552 [NEW]: access violation on any invalid odbc query
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89739@lists.php.net to get a copy of this message
From:             humbads at alum dot mit dot edu
Operating system: Windows XP SP2
PHP version:      5.1.1
PHP Bug Type:     Reproducible crash
Bug description:  access violation on any invalid odbc query

Description:
------------
PHP crashes with a memory exception when running any query with invalid
syntax.  The driver is PDO-ODBC-Visual Foxpro on Windows XP SP2.  The
folder has full control permission for IUSR to the directory containing
the Foxpro DBF files.

The exception dialog shows:
php-cgi.exe - Application Error
The instruction at "0x7c80a258" reference memory at "0x0000000c". The
memory could not be "written".

Using the out-of-the box install of PHP 5.1.1 with pdo and pdo_odbc
extensions loaded via php.ini.  Latest Visual Foxpro ODBC driver was
downloaded from Microsoft website.


Reproduce code:
---------------
<?php
$db = new PDO("odbc:Driver={Microsoft Visual FoxPro
Driver};SourceType=DBF;SourceDB=C:\\temp\\;Exclusive=No");
$db->query("any query with invalid syntax");
?>

Expected result:
----------------
Should give a proper error message, no?


-- 
Edit bug report at http://bugs.php.net/?id=35552&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35552&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35552&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35552&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35552&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=35552&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35552&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35552&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35552&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35552&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35552&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=35552&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=35552&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35552&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35552&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35552&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35552&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35552&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35552&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35552&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35552&r=mysqlcfg


Thread (10 messages)

« previous php.bugs (#89739) next »