diff options
author | Frank M. Kromann <fmk@php.net> | 2001-08-06 16:58:27 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2001-08-06 16:58:27 +0000 |
commit | 57946eb3bef16e1f358c80b8f084834dbc126214 (patch) | |
tree | 8f4c8b7c7f4fd6436ddb1795aa28869ff3cc28da | |
parent | 96607ebd1a4be6714f12d3802c12995c6f09c889 (diff) | |
download | php-git-57946eb3bef16e1f358c80b8f084834dbc126214.tar.gz |
Adding missing TSRM macros.
Kill signed/unsigned compiler warning
-rw-r--r-- | ext/exif/exif.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 01aacedf15..e3e8e7cedf 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -521,7 +521,7 @@ static void ExtractThumbnail(ImageInfoType *ImageInfo, char *OffsetBase, unsigne return; } else { /* Check to make sure we are not going to go past the ExifLength */ - if (ImageInfo->ThumbnailOffset + ImageInfo->ThumbnailSize > ExifLength) { + if ((unsigned)(ImageInfo->ThumbnailOffset + ImageInfo->ThumbnailSize) > ExifLength) { php_error(E_WARNING,"Thumbnail goes beyond exif header boundary"); return; } else { @@ -1038,7 +1038,7 @@ void DiscardData(Section_t *Sections, int *SectionsRead) */ int ReadJpegFile(ImageInfoType *ImageInfo, Section_t *Sections, int *SectionsRead, char *FileName, - int ReadAll, char *LastExifRefd) + int ReadAll, char *LastExifRefd TSRMLS_DC) { FILE *infile; int ret; @@ -1097,7 +1097,7 @@ int ReadJpegFile(ImageInfoType *ImageInfo, Section_t *Sections, /* {{{ php_read_jpeg_exif */ -int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll) +int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll TSRMLS_DC) { Section_t Sections[20]; int SectionsRead; @@ -1107,7 +1107,7 @@ int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll) ImageInfo->MotorolaOrder = 0; - ret = ReadJpegFile(ImageInfo, Sections, &SectionsRead, FileName, ReadAll, LastExifRefd); + ret = ReadJpegFile(ImageInfo, Sections, &SectionsRead, FileName, ReadAll, LastExifRefd TSRMLS_CC); /* * Thought this might pick out the embedded thumbnail, but it doesn't work. -RL for (i=0;i<SectionsRead-1;i++) { @@ -1151,7 +1151,7 @@ PHP_FUNCTION(read_exif_data) readall = Z_LVAL_PP(p_readall); } - ret = php_read_jpeg_exif(&ImageInfo, Z_STRVAL_PP(p_name), readall); + ret = php_read_jpeg_exif(&ImageInfo, Z_STRVAL_PP(p_name), readall TSRMLS_CC); if (ret==FALSE || array_init(return_value) == FAILURE) { RETURN_FALSE; |