mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Improved parameter handling
This commit is contained in:
parent
3fb23c0173
commit
2bcdd36879
1 changed files with 2 additions and 2 deletions
|
@ -1212,7 +1212,7 @@ PHP_FUNCTION(ibase_affected_rows)
|
|||
{
|
||||
ibase_trans *trans = NULL;
|
||||
ibase_db_link *ib_link;
|
||||
zval *arg;
|
||||
zval *arg = NULL;
|
||||
|
||||
RESET_ERRMSG;
|
||||
|
||||
|
@ -1220,7 +1220,7 @@ PHP_FUNCTION(ibase_affected_rows)
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue