|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: tleigh at progressivemouse dot com
New email:
PHP Version: OS:


 [2001-04-19 11:17 UTC] tleigh at progressivemouse dot com
$connection = odbc_connect("test", "test", "test");
$query = "select * from tbl_name";
$result = odbc_prepare($connection, $query);

--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))


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-19 16:29 UTC]
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]
marking as feedback after ahill's comment.
 [2001-05-24 09:01 UTC]
no feedback from user.  considered fixed in cvs
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 09:01:28 2024 UTC