note 20987 added to function.odbc-fetch-object

From: Date: Wed, 24 Apr 2002 14:57:20 +0000
Subject: note 20987 added to function.odbc-fetch-object
Groups: php.notes 
Request: Send a blank email to php-notes+get-29767@lists.php.net to get a copy of this message
It' possible to get both odbc_fetch_object() and odbc_fetch_array() to work just by removing #ifdef HAVE_DBMAKER/#endif in php_odbc.h line 216 (219) and the same in php_odbc.c line 87 (90) and 1229 (1380). I've done this sucessfully in the PHP 4.2.0 release using ODBC towards a MySQL database. I really can't understand why the #ifdef is there from the beginning, but they do have their reasons. These were the files i "patched" /* $Id: php_odbc.c,v 1.120.2.1 2002/04/08 22:21:30 sniper Exp $ */ /* $Id: php_odbc.h,v 1.45.2.1 2002/03/12 02:27:47 sniper Exp $ */ -- http://www.php.net/manual/en/function.odbc-fetch-object.php http://master.php.net/manage/user-notes.php?action=edit+20987 http://master.php.net/manage/user-notes.php?action=delete+20987 http://master.php.net/manage/user-notes.php?action=reject+20987

« previous php.notes (#29767) next »