Skip to content

Commit 4d69587

Browse files
committed
Fixed compilation errors
1 parent c8dea7a commit 4d69587

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_P(bind->zval) == IS_TRUE) || (Z_TYPE_P(bind->zval) == IS_FALSE)) {
1086+
} else if ((Z_TYPE(bind->val) == IS_TRUE) || (Z_TYPE(bind->val) == IS_FALSE)) {
10871087
/* 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);
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);
10921092
}
10931093

10941094
return 0;

0 commit comments

Comments
 (0)