]> granicus.if.org Git - php/commitdiff
- Seems to be a problem here with the return value not being set
authorAndi Gutmans <andi@php.net>
Fri, 10 Mar 2000 21:22:48 +0000 (21:22 +0000)
committerAndi Gutmans <andi@php.net>
Fri, 10 Mar 2000 21:22:48 +0000 (21:22 +0000)
Zend/zend_operators.c

index fdf10c543e5b932a486dfa7c02236dfe53f8978c..ece7d04dcdc9f863e1e2fcc1d0a98c7a7cfb7898 100644 (file)
@@ -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++) {