cvs: php-src /ext/interbase ibase_query.c
| From: | Ilia Alshanetsky | Date: | Sun, 11 Jan 2009 23:52:48 +0000 |
| Subject: | cvs: php-src /ext/interbase ibase_query.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-55547@lists.php.net to get a copy of this message | ||
iliaa Sun Jan 11 23:52:48 2009 UTC
Modified files:
/php-src/ext/interbase ibase_query.c
Log:
MFB: improved parameter handling
http://cvs.php.net/viewvc.cgi/php-src/ext/interbase/ibase_query.c?r1=1.40&r2=1.41&diff_format=u
Index: php-src/ext/interbase/ibase_query.c
diff -u php-src/ext/interbase/ibase_query.c:1.40 php-src/ext/interbase/ibase_query.c:1.41
--- php-src/ext/interbase/ibase_query.c:1.40 Wed Dec 31 11:12:32 2008
+++ php-src/ext/interbase/ibase_query.c Sun Jan 11 23:52:48 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ibase_query.c,v 1.40 2008/12/31 11:12:32 sebastian Exp $ */
+/* $Id: ibase_query.c,v 1.41 2009/01/11 23:52:48 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1210,7 +1210,7 @@
{
ibase_trans *trans = NULL;
ibase_db_link *ib_link;
- zval *arg;
+ zval *arg = NULL;
RESET_ERRMSG;
@@ -1218,7 +1218,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;