@@ -46,9 +46,8 @@ static zend_class_entry *phar_ce_entry;
4646
4747static int phar_file_type (const HashTable * mimes , const char * file , char * * mime_type ) /* {{{ */
4848{
49- char * ext ;
5049 phar_mime_type * mime ;
51- ext = strrchr (file , '.' );
50+ const char * ext = strrchr (file , '.' );
5251 if (!ext ) {
5352 * mime_type = "text/plain" ;
5453 /* no file extension = assume text/plain */
@@ -347,10 +346,9 @@ static void phar_do_404(phar_archive_data *phar, char *fname, size_t fname_len,
347346/* post-process REQUEST_URI and retrieve the actual request URI. This is for
348347 cases like http://localhost/blah.phar/path/to/file.php/extra/stuff
349348 which calls "blah.phar" file "path/to/file.php" with PATH_INFO "/extra/stuff" */
350- static void phar_postprocess_ru_web (const char * fname , size_t fname_len , const char * entry , size_t * entry_len , char * * ru , size_t * ru_len ) /* {{{ */
349+ static void phar_postprocess_ru_web (char * fname , size_t fname_len , char * entry , size_t * entry_len , char * * ru , size_t * ru_len ) /* {{{ */
351350{
352- const char * e = entry + 1 ;
353- char * u = NULL , * u1 = NULL , * saveu = NULL ;
351+ char * e = entry + 1 , * u1 = NULL , * u = NULL , * saveu = NULL ;
354352 size_t e_len = * entry_len - 1 , u_len = 0 ;
355353 phar_archive_data * pphar ;
356354
0 commit comments