From 88c98d3e3fb5e572748e697054bbf9331b6c671a Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Fri, 10 Mar 2000 21:22:48 +0000 Subject: [PATCH] - Seems to be a problem here with the return value not being set --- Zend/zend_operators.c | 3 +++ 1 file changed, 3 insertions(+) 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++) { -- 2.40.0