summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-10-03 10:49:56 +0300
committerDmitry Stogov <dmitry@zend.com>2017-10-03 10:49:56 +0300
commit24e595bf26279c315a7f120f866160e0a0833fad (patch)
tree23ed268a9f38657eb06de96768e077dccbb50e28
parent4d69587035f6d622134f86bbc9ee0afb00eeec88 (diff)
downloadphp-git-24e595bf26279c315a7f120f866160e0a0833fad.tar.gz
Use dereferenced value
-rw-r--r--ext/oci8/oci8_statement.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c
index f2c380fd75..f0cb16425a 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -1083,12 +1083,12 @@ int php_oci_bind_post_exec(zval *data)
}
break;
}
- } else if ((Z_TYPE(bind->val) == IS_TRUE) || (Z_TYPE(bind->val) == IS_FALSE)) {
+ } else if ((Z_TYPE_P(zv) == IS_TRUE) || (Z_TYPE_P(zv) == IS_FALSE)) {
/* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temorary value) */
- if (Z_LVAL(bind->val) == 0)
- ZVAL_BOOL(&bind->val, FALSE);
- else if (Z_LVAL(bind->val) == 1)
- ZVAL_BOOL(&bind->val, TRUE);
+ if (Z_LVAL_P(zv) == 0)
+ ZVAL_BOOL(zv, FALSE);
+ else if (Z_LVAL_P(zv) == 1)
+ ZVAL_BOOL(zv, TRUE);
}
return 0;