From: foobar Date: Tue, 9 Sep 2003 19:25:55 +0000 (+0000) Subject: - Fixed bug #25211 (image.c compile failure with AIX) X-Git-Tag: RELEASE_0_7~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e40faa1d68618afe13ffd87312f5e880e69c172;p=php - Fixed bug #25211 (image.c compile failure with AIX) --- diff --git a/ext/standard/image.c b/ext/standard/image.c index 8508ced4d3..366cfe2982 100644 --- a/ext/standard/image.c +++ b/ext/standard/image.c @@ -1026,7 +1026,7 @@ static struct gfxinfo *php_handle_xbm(php_stream * stream TSRMLS_DC) /* {{{ php_image_type_to_mime_type * Convert internal image_type to mime type */ -PHPAPI const char * php_image_type_to_mime_type(int image_type) +PHPAPI char * php_image_type_to_mime_type(int image_type) { switch( image_type) { case IMAGE_FILETYPE_GIF: diff --git a/ext/standard/php_image.h b/ext/standard/php_image.h index 81dc6ad0e5..1d3e9038dc 100644 --- a/ext/standard/php_image.h +++ b/ext/standard/php_image.h @@ -57,6 +57,6 @@ PHP_MINIT_FUNCTION(imagetypes); PHPAPI int php_getimagetype(php_stream *stream, char *filetype TSRMLS_DC); -PHPAPI const char * php_image_type_to_mime_type(int image_type); +PHPAPI char * php_image_type_to_mime_type(int image_type); #endif /* PHP_IMAGE_H */