@@ -3042,7 +3042,7 @@ static int exif_process_user_comment(image_info_type *ImageInfo, char **pszInfoP
3042
3042
if (ByteCount >=8 ) {
3043
3043
const zend_encoding * from , * to ;
3044
3044
if (!memcmp (szValuePtr , "UNICODE\0" , 8 )) {
3045
- * pszEncoding = estrdup (( const char * ) szValuePtr );
3045
+ * pszEncoding = estrdup (szValuePtr );
3046
3046
szValuePtr = szValuePtr + 8 ;
3047
3047
ByteCount -= 8 ;
3048
3048
/* 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
3075
3075
}
3076
3076
return len ;
3077
3077
} else if (!memcmp (szValuePtr , "ASCII\0\0\0" , 8 )) {
3078
- * pszEncoding = estrdup (( const char * ) szValuePtr );
3078
+ * pszEncoding = estrdup (szValuePtr );
3079
3079
szValuePtr = szValuePtr + 8 ;
3080
3080
ByteCount -= 8 ;
3081
3081
} else if (!memcmp (szValuePtr , "JIS\0\0\0\0\0" , 8 )) {
3082
3082
/* 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 );
3084
3084
szValuePtr = szValuePtr + 8 ;
3085
3085
ByteCount -= 8 ;
3086
3086
/* 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)
4588
4588
exif_iif_add_int (& ImageInfo , SECTION_FILE , "FileDateTime" , ImageInfo .FileDateTime );
4589
4589
exif_iif_add_int (& ImageInfo , SECTION_FILE , "FileSize" , ImageInfo .FileSize );
4590
4590
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 ));
4592
4592
exif_iif_add_str (& ImageInfo , SECTION_FILE , "SectionsFound" , sections_str ? sections_str : "NONE" );
4593
4593
4594
4594
#ifdef EXIF_DEBUG
0 commit comments