com php-src: Use dereferenced value: ext/oci8/oci8_statem ent.c

From: Date: Tue, 03 Oct 2017 07:49:56 +0000
Subject: com php-src: Use dereferenced value: ext/oci8/oci8_statem ent.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99622@lists.php.net to get a copy of this message
Commit: 24e595bf26279c315a7f120f866160e0a0833fad Author: Dmitry Stogov <dmitry@zend.com> Tue, 3 Oct 2017 10:49:56 +0300 Parents: 4d69587035f6d622134f86bbc9ee0afb00eeec88 Branches: PHP-7.0 PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=24e595bf26279c315a7f120f866160e0a0833fad Log: Use dereferenced value Changed paths: M ext/oci8/oci8_statement.c Diff: diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index f2c380f..f0cb164 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -1083,12 +1083,12 @@ int php_oci_bind_post_exec(zval *data) } break; } - } else if ((Z_TYPE(bind->val) == IS_TRUE) || (Z_TYPE(bind->val) == IS_FALSE)) { + } else if ((Z_TYPE_P(zv) == IS_TRUE) || (Z_TYPE_P(zv) == IS_FALSE)) { /* This convetrsion is done on purpose (ext/oci8 uses LVAL as a temorary value) */ - if (Z_LVAL(bind->val) == 0) - ZVAL_BOOL(&bind->val, FALSE); - else if (Z_LVAL(bind->val) == 1) - ZVAL_BOOL(&bind->val, TRUE); + if (Z_LVAL_P(zv) == 0) + ZVAL_BOOL(zv, FALSE); + else if (Z_LVAL_P(zv) == 1) + ZVAL_BOOL(zv, TRUE); } return 0;

« previous php.cvs (#99622) next »