Browse Source

- Fixed bug #22580 (ext/odbc compile failure with dbmaker)

migration/unlabaled-1.3.2
foobar 24 years ago
parent
commit
20d88e4c34
  1. 1
      ext/odbc/config.m4
  2. 4
      ext/odbc/php_odbc.c
  3. 2
      ext/odbc/php_odbc.h

1
ext/odbc/config.m4

@ -539,6 +539,7 @@ if test -n "$ODBC_TYPE"; then
if test "$ODBC_TYPE" != "dbmaker"; then
ext_shared=$shared
PHP_EVAL_LIBLINE([$ODBC_LFLAGS $ODBC_LIBS], ODBC_SHARED_LIBADD)
AC_DEFINE(HAVE_SQLDATASOURCES,1,[ ])
fi
AC_DEFINE(HAVE_UODBC,1,[ ])

4
ext/odbc/php_odbc.c

@ -79,7 +79,9 @@ function_entry odbc_functions[] = {
PHP_FE(odbc_commit, NULL)
PHP_FE(odbc_connect, NULL)
PHP_FE(odbc_cursor, NULL)
#ifdef HAVE_SQLDATASOURCES
PHP_FE(odbc_data_source, NULL)
#endif
PHP_FE(odbc_execute, NULL)
PHP_FE(odbc_error, NULL)
PHP_FE(odbc_errormsg, NULL)
@ -1169,6 +1171,7 @@ PHP_FUNCTION(odbc_cursor)
}
/* }}} */
#ifdef HAVE_SQLDATASOURCES
/* {{{ proto array odbc_data_source(int connection_id, int fetch_type)
Return information about the currently connected data source */
PHP_FUNCTION(odbc_data_source)
@ -1229,6 +1232,7 @@ PHP_FUNCTION(odbc_data_source)
}
/* }}} */
#endif /* HAVE_SQLDATASOURCES *
/* {{{ proto int odbc_exec(int connection_id, string query [, int flags])
Prepare and execute an SQL statement */

2
ext/odbc/php_odbc.h

@ -54,7 +54,9 @@ PHP_FUNCTION(odbc_commit);
PHP_FUNCTION(odbc_connect);
PHP_FUNCTION(odbc_pconnect);
PHP_FUNCTION(odbc_cursor);
#ifdef HAVE_SQLDATASOURCES
PHP_FUNCTION(odbc_data_source);
#endif
PHP_FUNCTION(odbc_do);
PHP_FUNCTION(odbc_exec);
PHP_FUNCTION(odbc_execute);

Loading…
Cancel
Save