Lines Matching refs:result

60 	zend_string *result;  in php_base64_encode()  local
62 result = zend_string_safe_alloc(((length + 2) / 3), 4 * sizeof(char), 0, 0); in php_base64_encode()
63 p = (unsigned char *)ZSTR_VAL(result); in php_base64_encode()
90 ZSTR_LEN(result) = (p - (unsigned char *)ZSTR_VAL(result)); in php_base64_encode()
92 return result; in php_base64_encode()
134 zend_string *result; in php_base64_decode_ex() local
136 result = zend_string_alloc(length, 0); in php_base64_decode_ex()
165 ZSTR_VAL(result)[j] = ch << 2; in php_base64_decode_ex() local
168 ZSTR_VAL(result)[j++] |= ch >> 4; in php_base64_decode_ex() local
169 ZSTR_VAL(result)[j] = (ch & 0x0f) << 4; in php_base64_decode_ex() local
172 ZSTR_VAL(result)[j++] |= ch >>2; in php_base64_decode_ex() local
173 ZSTR_VAL(result)[j] = (ch & 0x03) << 6; in php_base64_decode_ex() local
176 ZSTR_VAL(result)[j++] |= ch; in php_base64_decode_ex() local
191 ZSTR_LEN(result) = j; in php_base64_decode_ex()
192 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0'; in php_base64_decode_ex() local
194 return result; in php_base64_decode_ex()
197 zend_string_free(result); in php_base64_decode_ex()
208 zend_string *result; in PHP_FUNCTION() local
214 result = php_base64_encode((unsigned char*)str, str_len); in PHP_FUNCTION()
215 if (result != NULL) { in PHP_FUNCTION()
216 RETURN_STR(result); in PHP_FUNCTION()
230 zend_string *result; in PHP_FUNCTION() local
238 result = php_base64_decode_ex((unsigned char*)str, str_len, strict); in PHP_FUNCTION()
239 if (result != NULL) { in PHP_FUNCTION()
240 RETURN_STR(result); in PHP_FUNCTION()