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,[ ])
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)
}
/* }}} */
+#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)
}
/* }}} */
+#endif /* HAVE_SQLDATASOURCES *
/* {{{ proto int odbc_exec(int connection_id, string query [, int flags])
Prepare and execute an SQL statement */
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);