|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-05 06:15 UTC] humbads at alum dot mit dot edu
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?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
I'm expiriencing the same behaviour with pdo_odbc and the M$ Access Driver. I can verify this with this snapshot: php5.1-win32-200512231130.zip My testcase is: $sDsn = 'odbc:driver={Microsoft Access Driver (*.mdb)};Dbq=beispieldatenbank.mdb;'; $oPdo = new PDO($sDsn); $oPdo->query('SELEC * FROM ADDRESSES');