diff options
| author | Marcus Boerger <helly@php.net> | 2002-06-22 23:43:16 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-06-22 23:43:16 +0000 |
| commit | d782c712cae59d5feb00fb995704a50051ec1bbf (patch) | |
| tree | 3e200fc639416a01267505c22ec00e244c3408a7 /ext/exif/exif.c | |
| parent | 4c53f954be5af67260008a5e3e8f7e162d0ee300 (diff) | |
| download | php-git-d782c712cae59d5feb00fb995704a50051ec1bbf.tar.gz | |
-exif version
-missing constant (and notice)
-corrected error messages
Diffstat (limited to 'ext/exif/exif.c')
| -rw-r--r-- | ext/exif/exif.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index adc5daa3e9..3a917140d4 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -107,7 +107,7 @@ function_entry exif_functions[] = { }; /* }}} */ -#define EXIF_VERSION "1.3 $Id$" +#define EXIF_VERSION "1.4 $Id$" /* {{{ PHP_MINFO_FUNCTION */ @@ -205,6 +205,7 @@ PHP_MINIT_FUNCTION(exif) REGISTER_LONG_CONSTANT("IMAGETYPE_JP2", IMAGE_FILETYPE_JP2, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IMAGETYPE_JPX", IMAGE_FILETYPE_JPX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IMAGETYPE_JB2", IMAGE_FILETYPE_JB2, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("IMAGETYPE_SWC", IMAGE_FILETYPE_SWC, CONST_CS | CONST_PERSISTENT); return SUCCESS; } /* }}} */ @@ -260,8 +261,8 @@ static size_t php_strnlen(char* str, size_t maxlen) { static const char * EXIF_ERROR_EALLOC = "Cannot allocate memory for all data"; static const char * EXIF_ERROR_FILEEOF = "Unexpected end of file reached"; static const char * EXIF_ERROR_CORRUPT = "File structure corrupted"; -static const char * EXIF_ERROR_THUMBEOF = "Thumbnail goes IFD boundary or end of file reached"; -static const char * EXIF_ERROR_FSREALLOC = "Illegal reallocating of undefined file section"; +static const char * EXIF_ERROR_THUMBEOF = "Thumbnail goes beyond IFD boundary or end of file reached"; +static const char * EXIF_ERROR_FSREALLOC = "Illegal reallocation of undefined file section"; #define EXIF_ERRLOG_EALLOC php_error(E_ERROR, EXIF_ERROR_EALLOC); #define EXIF_ERRLOG_FILEEOF php_error(E_WARNING, EXIF_ERROR_FILEEOF); |
