@@ -3042,7 +3042,7 @@ static int exif_process_user_comment(image_info_type *ImageInfo, char **pszInfoP
30423042 if (ByteCount >=8 ) {
30433043 const zend_encoding * from , * to ;
30443044 if (!memcmp (szValuePtr , "UNICODE\0" , 8 )) {
3045- * pszEncoding = estrdup (( const char * ) szValuePtr );
3045+ * pszEncoding = estrdup (szValuePtr );
30463046 szValuePtr = szValuePtr + 8 ;
30473047 ByteCount -= 8 ;
30483048 /* First try to detect BOM: ZERO WIDTH NOBREAK SPACE (FEFF 16)
@@ -3075,12 +3075,12 @@ static int exif_process_user_comment(image_info_type *ImageInfo, char **pszInfoP
30753075 }
30763076 return len ;
30773077 } else if (!memcmp (szValuePtr , "ASCII\0\0\0" , 8 )) {
3078- * pszEncoding = estrdup (( const char * ) szValuePtr );
3078+ * pszEncoding = estrdup (szValuePtr );
30793079 szValuePtr = szValuePtr + 8 ;
30803080 ByteCount -= 8 ;
30813081 } else if (!memcmp (szValuePtr , "JIS\0\0\0\0\0" , 8 )) {
30823082 /* JIS should be translated to MB or we leave it to the user - leave it to the user */
3083- * pszEncoding = estrdup (( const char * ) szValuePtr );
3083+ * pszEncoding = estrdup (szValuePtr );
30843084 szValuePtr = szValuePtr + 8 ;
30853085 ByteCount -= 8 ;
30863086 /* XXX this will fail again if encoding_converter returns on error something different than SIZE_MAX */
@@ -4588,7 +4588,7 @@ PHP_FUNCTION(exif_read_data)
45884588 exif_iif_add_int (& ImageInfo , SECTION_FILE , "FileDateTime" , ImageInfo .FileDateTime );
45894589 exif_iif_add_int (& ImageInfo , SECTION_FILE , "FileSize" , ImageInfo .FileSize );
45904590 exif_iif_add_int (& ImageInfo , SECTION_FILE , "FileType" , ImageInfo .FileType );
4591- exif_iif_add_str (& ImageInfo , SECTION_FILE , "MimeType" , ( char * ) php_image_type_to_mime_type (ImageInfo .FileType ));
4591+ exif_iif_add_str (& ImageInfo , SECTION_FILE , "MimeType" , php_image_type_to_mime_type (ImageInfo .FileType ));
45924592 exif_iif_add_str (& ImageInfo , SECTION_FILE , "SectionsFound" , sections_str ? sections_str : "NONE" );
45934593
45944594#ifdef EXIF_DEBUG
0 commit comments