|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 - 9 = ?
Subscribe to this entry?

 [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-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 23 12:01:27 2023 UTC