iliaa Sun Jan 11 23:52:29 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/interbase ibase_query.c Log: Improved parameter handling http://cvs.php.net/viewvc.cgi/php-src/ext/interbase/ibase_query.c?r1=1.23.2.1.2.10.2.9&r2=1.23.2.1.2.10.2.10&diff_format=u Index: php-src/ext/interbase/ibase_query.c diff -u php-src/ext/interbase/ibase_query.c:1.23.2.1.2.10.2.9 php-src/ext/interbase/ibase_query.c:1.23.2.1.2.10.2.10 --- php-src/ext/interbase/ibase_query.c:1.23.2.1.2.10.2.9 Wed Dec 31 11:15:38 2008 +++ php-src/ext/interbase/ibase_query.c Sun Jan 11 23:52:29 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ibase_query.c,v 1.23.2.1.2.10.2.9 2008/12/31 11:15:38 sebastian Exp $ */ +/* $Id: ibase_query.c,v 1.23.2.1.2.10.2.10 2009/01/11 23:52:29 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1212,7 +1212,7 @@ { ibase_trans *trans = NULL; ibase_db_link *ib_link; - zval *arg; + zval *arg = NULL; RESET_ERRMSG; @@ -1220,7 +1220,7 @@ return; } - if (ZEND_NUM_ARGS() == 0) { + if (!arg) { ZEND_FETCH_RESOURCE2(ib_link, ibase_db_link *, NULL, IBG(default_link), LE_LINK, le_link, le_plink); if (ib_link->tr_list == NULL || ib_link->tr_list->trans == NULL) { RETURN_FALSE;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php