Lines Matching refs:result
60 unsigned char *result; in php_base64_encode() local
69 result = (unsigned char *) safe_emalloc((length + 2) / 3, 4 * sizeof(char), 1); in php_base64_encode()
70 p = result; in php_base64_encode()
96 *ret_length = (int)(p - result); in php_base64_encode()
99 return result; in php_base64_encode()
148 unsigned char *result; in php_base64_decode_ex() local
150 result = (unsigned char *)safe_emalloc(length, 1, 1); in php_base64_decode_ex()
164 efree(result); in php_base64_decode_ex()
174 efree(result); in php_base64_decode_ex()
180 result[j] = ch << 2; in php_base64_decode_ex()
183 result[j++] |= ch >> 4; in php_base64_decode_ex()
184 result[j] = (ch & 0x0f) << 4; in php_base64_decode_ex()
187 result[j++] |= ch >>2; in php_base64_decode_ex()
188 result[j] = (ch & 0x03) << 6; in php_base64_decode_ex()
191 result[j++] |= ch; in php_base64_decode_ex()
202 efree(result); in php_base64_decode_ex()
207 result[k] = 0; in php_base64_decode_ex()
213 result[j] = '\0'; in php_base64_decode_ex()
214 return result; in php_base64_decode_ex()
223 unsigned char *result; in PHP_FUNCTION() local
229 result = php_base64_encode((unsigned char*)str, str_len, &ret_length); in PHP_FUNCTION()
230 if (result != NULL) { in PHP_FUNCTION()
231 RETVAL_STRINGL((char*)result, ret_length, 0); in PHP_FUNCTION()
243 unsigned char *result; in PHP_FUNCTION() local
250 result = php_base64_decode_ex((unsigned char*)str, str_len, &ret_length, strict); in PHP_FUNCTION()
251 if (result != NULL) { in PHP_FUNCTION()
252 RETVAL_STRINGL((char*)result, ret_length, 0); in PHP_FUNCTION()