abies Tue Sep 2 09:17:57 2003 EDT Modified files: /php-src/ext/interbase interbase.c Log: Can't ignore variadic DEBUG macro for compilers that don't support them. Revert. Index: php-src/ext/interbase/interbase.c diff -u php-src/ext/interbase/interbase.c:1.165 php-src/ext/interbase/interbase.c:1.166 --- php-src/ext/interbase/interbase.c:1.165 Tue Sep 2 08:46:42 2003 +++ php-src/ext/interbase/interbase.c Tue Sep 2 09:17:56 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: interbase.c,v 1.165 2003/09/02 12:46:42 abies Exp $ */ +/* $Id: interbase.c,v 1.166 2003/09/02 13:17:56 abies Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -43,7 +43,7 @@ #endif #ifdef ZEND_DEBUG_ -#define IBDEBUG(fmt, ...) php_printf("::: (%4d) " fmt " \n", __LINE__, ##__VA_ARGS__) +#define IBDEBUG(a) php_printf("::: %s (%d)\n", a, __LINE__); #endif #ifndef IBDEBUG @@ -261,7 +261,7 @@ { int type; - IBDEBUG("Resource #%ld transaction or database link?",Z_LVAL_PP(link_id)); + IBDEBUG("Transaction or database link?"); if (zend_list_find(Z_LVAL_PP(link_id), &type)) { if (type == le_trans) { /* Transaction resource: make sure it refers to one link only, then @@ -706,7 +706,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "Interbase Support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.165 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.166 $"); #ifdef COMPILE_DL_INTERBASE php_info_print_table_row(2, "Dynamic Module", "Yes"); #endif @@ -1634,7 +1634,7 @@ /* allocate sqlda and output buffers */ if (ib_query->out_sqlda) { /* output variables in select, select for update */ - IBDEBUG("Query wants XSQLDA with %d field(s) for output",ib_query->out_sqlda->sqld); + IBDEBUG("Query wants XSQLDA for output"); IB_RESULT = emalloc(sizeof(ibase_result)); IB_RESULT->link = ib_query->link; IB_RESULT->trans = ib_query->trans; @@ -1656,7 +1656,7 @@ } if (ib_query->in_sqlda) { /* has placeholders */ - IBDEBUG("Query wants XSQLDA with %d field(s) for input",ib_query->in_sqlda->sqld); + IBDEBUG("Query wants XSQLDA for input"); if (ib_query->in_sqlda->sqld != argc) { _php_ibase_module_error("Placeholders (%d) and variables (%d) mismatch" TSRMLS_CC, ib_query->in_sqlda->sqld, argc); goto _php_ibase_exec_error; @@ -2878,7 +2878,7 @@ /* Have we used this cursor before and it's still open (exec proc has no cursor) ? */ if (ib_query->result_res_id != 0 && ib_query->statement_type != isc_info_sql_stmt_exec_procedure) { - IBDEBUG("Implicitly closing a cursor for result resource #%d",ib_query->result_res_id); + IBDEBUG("Implicitly closing a cursor"); if (isc_dsql_free_statement(IB_STATUS, &ib_query->stmt, DSQL_close)) { _php_ibase_error(TSRMLS_C); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php