diff options
Diffstat (limited to 'ext/exif/exif.c')
| -rw-r--r-- | ext/exif/exif.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 7fdf6c9f87..86aab27497 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -3254,7 +3254,6 @@ PHP_FUNCTION(exif_imagetype) { zval **arg1; php_stream * stream; - int rsrc_id; int itype = 0; if (ZEND_NUM_ARGS() != 1) @@ -3269,11 +3268,9 @@ PHP_FUNCTION(exif_imagetype) RETURN_FALSE; } - rsrc_id = ZEND_REGISTER_RESOURCE(NULL, stream, php_file_le_stream()); - itype = itype = php_getimagetype(stream, NULL TSRMLS_CC); - zend_list_delete(rsrc_id); + php_stream_close(stream); if ( itype == IMAGE_FILETYPE_UNKNOWN) { RETURN_FALSE; |
