php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8358 SOUNDEX, MSSQL, and EXTENDED_FETCH with OpenLink
Submitted: 2000-12-21 11:50 UTC Modified: 2001-04-25 10:38 UTC
From: manton at iensemble dot com Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.4 OS: Red Hat Linux 6.2
Private report: No CVE-ID: None
 [2000-12-21 11:50 UTC] manton at iensemble dot com
./configure --with-openlink=/usr/local/openlink
make

There are some queries that will not work with OpenLink/PHP4/Linux and MSSQL 7.  For example, any use of SOUNDEX() will fail, as well as odd things like if queries end in a semicolon (";").  These exact same queries work with the "odbctest" program that ships with OpenLink, which leads me to think it is an issue with the way PHP4 interacts with OpenLink.

This exact problem has been reported by several other people on the PHP mailing list and on the OpenLink newsgroup servers.

resolution:

In my attempt to track down this problem, I compared php_odbc.c with what the odbctest program does.  The code is similar in some ways and not in others.  After tweaking several options, I found that if I undefine HAVE_SQL_EXTENDED_FETCH everything works great with PHP4/Openlink, including the queries with things like SOUNDEX()/etc that would not work previously.  This is also using odbc_prepare/execute.

The only problem I've found with this change is that queries will sometimes fail if you don't use odbc_free_result frequently.

#undef HAVE_SQL_EXTENDED_FETCH


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-28 10:43 UTC] kalowsky@php.net
Have you tried this with the latest RC (4.0.5) of PHP?  I believe there has been some work done on the ODBC and OpenLink integration.  
 [2001-04-25 10:38 UTC] kalowsky@php.net
no user feedback.  considered fixed in cvs.  if this untrue, please reopen the bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 16:01:29 2024 UTC