com php-src: Remove dead code in base64.c: ext/standard/base64.c

From: Date: Tue, 20 Aug 2019 19:42:06 +0000
Subject: com php-src: Remove dead code in base64.c: ext/standard/base64.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-107981@lists.php.net to get a copy of this message
Commit: 01996c4b69ca1c22522dc7bec38a783c48861bec Author: George Peter Banyard <girgias@php.net> Tue, 20 Aug 2019 20:15:22 +0200 Parents: 15dcc1817df0a4f5fc70877aecd444ca09552cd5 Branches: PHP-7.4 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=01996c4b69ca1c22522dc7bec38a783c48861bec Log: Remove dead code in base64.c Changed paths: M ext/standard/base64.c Diff: diff --git a/ext/standard/base64.c b/ext/standard/base64.c index ea15ddc..0dd4045 100644 --- a/ext/standard/base64.c +++ b/ext/standard/base64.c @@ -669,39 +669,6 @@ zend_string *php_base64_encode_ssse3(const unsigned char *str, size_t length) /* }}} */ -/* {{{ php_base64_decode_ex */ -/* generate reverse table (do not set index 0 to 64) -static unsigned short base64_reverse_table[256]; -#define rt base64_reverse_table -void php_base64_init(void) -{ - char *s = emalloc(10240), *sp; - char *chp; - short idx; - - for(ch = 0; ch < 256; ch++) { - chp = strchr(base64_table, ch); - if(ch && chp) { - idx = chp - base64_table; - if (idx >= 64) idx = -1; - rt[ch] = idx; - } else { - rt[ch] = -1; - } - } - sp = s; - sprintf(sp, "static const short base64_reverse_table[256] = {\n"); - for(ch =0; ch < 256;) { - sp = s+strlen(s); - sprintf(sp, "\t% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,% 3d,\n", rt[ch+0], rt[ch+1], rt[ch+2], rt[ch+3], rt[ch+4], rt[ch+5], rt[ch+6], rt[ch+7], rt[ch+8], rt[ch+9], rt[ch+10], rt[ch+11], rt[ch+12], rt[ch+13], rt[ch+14], rt[ch+15]); - ch += 16; - } - sprintf(sp, "};"); - php_error_docref(NULL, E_NOTICE, "Reverse_table:\n%s", s); - efree(s); -} -*/ - #if ZEND_INTRIN_AVX2_NATIVE || ZEND_INTRIN_AVX2_RESOLVER # if ZEND_INTRIN_AVX2_RESOLVER && defined(HAVE_FUNC_ATTRIBUTE_TARGET) static __m256i php_base64_decode_avx2_reshuffle(__m256i in) __attribute__((target("avx2")));

« previous php.cvs (#107981) next »