From: Andi Gutmans Date: Fri, 10 Mar 2000 21:22:48 +0000 (+0000) Subject: - Seems to be a problem here with the return value not being set X-Git-Tag: PHP-4.0-RC1~196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88c98d3e3fb5e572748e697054bbf9331b6c671a;p=php - Seems to be a problem here with the return value not being set --- diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c index fdf10c543e..ece7d04dcd 100644 --- a/Zend/zend_operators.c +++ b/Zend/zend_operators.c @@ -737,6 +737,7 @@ ZEND_API int bitwise_or_function(zval *result, zval *op1, zval *op2) shorter = op1; } + result->type = IS_STRING; result->value.str.len = longer->value.str.len; result->value.str.val = estrndup(longer->value.str.val, longer->value.str.len); for (i = 0; i < shorter->value.str.len; i++) { @@ -769,6 +770,7 @@ ZEND_API int bitwise_and_function(zval *result, zval *op1, zval *op2) shorter = op1; } + result->type = IS_STRING; result->value.str.len = shorter->value.str.len; result->value.str.val = estrndup(shorter->value.str.val, shorter->value.str.len); for (i = 0; i < shorter->value.str.len; i++) { @@ -803,6 +805,7 @@ ZEND_API int bitwise_xor_function(zval *result, zval *op1, zval *op2) shorter = op1; } + result->type = IS_STRING; result->value.str.len = shorter->value.str.len; result->value.str.val = estrndup(shorter->value.str.val, shorter->value.str.len); for (i = 0; i < shorter->value.str.len; i++) {