Skip to content

Commit 24e595b

Browse files
committed
Use dereferenced value
1 parent 4d69587 commit 24e595b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/oci8/oci8_statement.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,12 +1083,12 @@ int php_oci_bind_post_exec(zval *data)
10831083
}
10841084
break;
10851085
}
1086-
} else if ((Z_TYPE(bind->val) == IS_TRUE) || (Z_TYPE(bind->val) == IS_FALSE)) {
1086+
} else if ((Z_TYPE_P(zv) == IS_TRUE) || (Z_TYPE_P(zv) == IS_FALSE)) {
10871087
/* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temorary value) */
1088-
if (Z_LVAL(bind->val) == 0)
1089-
ZVAL_BOOL(&bind->val, FALSE);
1090-
else if (Z_LVAL(bind->val) == 1)
1091-
ZVAL_BOOL(&bind->val, TRUE);
1088+
if (Z_LVAL_P(zv) == 0)
1089+
ZVAL_BOOL(zv, FALSE);
1090+
else if (Z_LVAL_P(zv) == 1)
1091+
ZVAL_BOOL(zv, TRUE);
10921092
}
10931093

10941094
return 0;

0 commit comments

Comments
 (0)