php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10403 cannot prepare iODBC statements
Submitted: 2001-04-19 11:17 UTC Modified: 2001-05-24 09:01 UTC
From: tleigh at progressivemouse dot com Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.4pl1 OS: Linux 2.2.18
Private report: No CVE-ID: None
 [2001-04-19 11:17 UTC] tleigh at progressivemouse dot com
Script:
<?
$connection = odbc_connect("test", "test", "test");
$query = "select * from tbl_name";
$result = odbc_prepare($connection, $query);
odbc_close($connection);
?>

Modules:
--with-mysql --with-iodbc --with-gd --with-jpeg-dir --with-ming --enable-ftp --enable-sockets

gdb backtrace:

X-Powered-By: PHP/4.0.4pl1
Content-type: text/html


Program recieved signal SIGSEGV, Segmentation fault.
0x402a06f1 in my_SQLPrepare (hstmt=0x81ab4c0,
	szSqlStr=0x817e094 "select * from table_name", cSqlStr=-3)
	at prepare.c:167
167	if (use_mb(charset_info))

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-19 16:29 UTC] ahill@php.net
Please verify that you have tried other drivers, or create a ODBC trace (DebugFile=file.out in the odbc.ini file) to view the ODBC calls.

The driver is most likely segfaulting here, not iODBC.


 [2001-05-01 17:00 UTC] kalowsky@php.net
marking as feedback after ahill's comment.
 [2001-05-24 09:01 UTC] kalowsky@php.net
no feedback from user.  considered fixed in cvs
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 14:01:29 2024 UTC