File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -383,9 +383,12 @@ zend_string *php_base64_decode_ex_default(const unsigned char *str, size_t lengt
383
383
PHPAPI zend_string * php_base64_encode (const unsigned char * str , size_t length ) __attribute__((ifunc ("resolve_base64_encode" )));
384
384
PHPAPI zend_string * php_base64_decode_ex (const unsigned char * str , size_t length , zend_bool strict ) __attribute__((ifunc ("resolve_base64_decode" )));
385
385
386
+ typedef zend_string * (* base64_encode_func_t )(const unsigned char * , size_t );
387
+ typedef zend_string * (* base64_decode_func_t )(const unsigned char * , size_t , zend_bool );
388
+
386
389
ZEND_NO_SANITIZE_ADDRESS
387
390
ZEND_ATTRIBUTE_UNUSED /* clang mistakenly warns about this */
388
- static void * resolve_base64_encode () {
391
+ static base64_encode_func_t resolve_base64_encode () {
389
392
# if ZEND_INTRIN_AVX2_FUNC_PROTO
390
393
if (zend_cpu_supports_avx2 ()) {
391
394
return php_base64_encode_avx2 ;
@@ -401,7 +404,7 @@ static void *resolve_base64_encode() {
401
404
402
405
ZEND_NO_SANITIZE_ADDRESS
403
406
ZEND_ATTRIBUTE_UNUSED /* clang mistakenly warns about this */
404
- static void * resolve_base64_decode () {
407
+ static base64_decode_func_t resolve_base64_decode () {
405
408
# if ZEND_INTRIN_AVX2_FUNC_PROTO
406
409
if (zend_cpu_supports_avx2 ()) {
407
410
return php_base64_decode_ex_avx2 ;
You can’t perform that action at this time.
0 commit comments