From: Dmitry Stogov Date: Mon, 2 Oct 2017 14:04:26 +0000 (+0300) Subject: Restored code for BOOL variables X-Git-Tag: php-7.0.25RC1~6^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8dea7ae1ebdb50bddf7f981ee30c35d5a5a878e;p=php Restored code for BOOL variables --- diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index 4c57dc9151..982e71ba6a 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -1083,6 +1083,12 @@ int php_oci_bind_post_exec(zval *data) } break; } + } else if ((Z_TYPE_P(bind->zval) == IS_TRUE) || (Z_TYPE_P(bind->zval) == IS_FALSE)) { + /* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temorary value) */ + if (Z_LVAL_P(bind->zval) == 0) + ZVAL_BOOL(bind->zval, FALSE); + else if (Z_LVAL_P(bind->zval) == 1) + ZVAL_BOOL(bind->zval, TRUE); } return 0;