diff options
author | Andi Gutmans <andi@php.net> | 2000-03-10 21:22:48 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-03-10 21:22:48 +0000 |
commit | 88c98d3e3fb5e572748e697054bbf9331b6c671a (patch) | |
tree | 148b6039d2feca107ff9dbb14b3f639d4c543930 /Zend/zend_operators.c | |
parent | eedd3ac4d09980e20111ae931bace1c798204e4c (diff) | |
download | php-git-88c98d3e3fb5e572748e697054bbf9331b6c671a.tar.gz |
- Seems to be a problem here with the return value not being set
Diffstat (limited to 'Zend/zend_operators.c')
-rw-r--r-- | Zend/zend_operators.c | 3 |
1 files changed, 3 insertions, 0 deletions
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++) { |