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()
140 zend_string *result; in php_base64_decode_ex() local
142 result = zend_string_alloc(length, 0); in php_base64_decode_ex()
171 ZSTR_VAL(result)[j] = ch << 2; in php_base64_decode_ex() local
174 ZSTR_VAL(result)[j++] |= ch >> 4; in php_base64_decode_ex() local
175 ZSTR_VAL(result)[j] = (ch & 0x0f) << 4; in php_base64_decode_ex() local
178 ZSTR_VAL(result)[j++] |= ch >>2; in php_base64_decode_ex() local
179 ZSTR_VAL(result)[j] = (ch & 0x03) << 6; in php_base64_decode_ex() local
182 ZSTR_VAL(result)[j++] |= ch; in php_base64_decode_ex() local
197 ZSTR_LEN(result) = j; in php_base64_decode_ex()
198 ZSTR_VAL(result)[ZSTR_LEN(result)] = '\0'; in php_base64_decode_ex() local
200 return result; in php_base64_decode_ex()
203 zend_string_free(result); in php_base64_decode_ex()
214 zend_string *result; in PHP_FUNCTION() local
219 result = php_base64_encode((unsigned char*)str, str_len); in PHP_FUNCTION()
220 if (result != NULL) { in PHP_FUNCTION()
221 RETURN_STR(result); in PHP_FUNCTION()
235 zend_string *result; in PHP_FUNCTION() local
240 result = php_base64_decode_ex((unsigned char*)str, str_len, strict); in PHP_FUNCTION()
241 if (result != NULL) { in PHP_FUNCTION()
242 RETURN_STR(result); in PHP_FUNCTION()