com php-src: Restored code for BOOL variables: ext/oci8/oci 8_statement.c

From: Date: Mon, 02 Oct 2017 14:04:26 +0000
Subject: com php-src: Restored code for BOOL variables: ext/oci8/oci 8_statement.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99624@lists.php.net to get a copy of this message
Commit: c8dea7ae1ebdb50bddf7f981ee30c35d5a5a878e Author: Dmitry Stogov <dmitry@zend.com> Mon, 2 Oct 2017 17:04:26 +0300 Parents: 9a01fe712a684dd0c6c6b36c48e7d16b78d9108d Branches: PHP-7.0 PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c8dea7ae1ebdb50bddf7f981ee30c35d5a5a878e Log: Restored code for BOOL variables Changed paths: M ext/oci8/oci8_statement.c Diff: diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement..c index 4c57dc9..982e71b 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;

« previous php.cvs (#99624) next »