We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8dea7a commit 4d69587Copy full SHA for 4d69587
ext/oci8/oci8_statement.c
@@ -1083,12 +1083,12 @@ int php_oci_bind_post_exec(zval *data)
1083
}
1084
break;
1085
1086
- } else if ((Z_TYPE_P(bind->zval) == IS_TRUE) || (Z_TYPE_P(bind->zval) == IS_FALSE)) {
+ } else if ((Z_TYPE(bind->val) == IS_TRUE) || (Z_TYPE(bind->val) == IS_FALSE)) {
1087
/* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temorary value) */
1088
- if (Z_LVAL_P(bind->zval) == 0)
1089
- ZVAL_BOOL(bind->zval, FALSE);
1090
- else if (Z_LVAL_P(bind->zval) == 1)
1091
- ZVAL_BOOL(bind->zval, TRUE);
+ if (Z_LVAL(bind->val) == 0)
+ ZVAL_BOOL(&bind->val, FALSE);
+ else if (Z_LVAL(bind->val) == 1)
+ ZVAL_BOOL(&bind->val, TRUE);
1092
1093
1094
return 0;
0 commit comments