Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
KalleZ committed Jul 12, 2017
1 parent 363bb03 commit 7845182
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ext/exif/exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -4312,8 +4312,6 @@ static int exif_read_from_stream(image_info_type *ImageInfo, php_stream *stream,
int ret;
zend_stat_t st;

php_printf("exif_read_from_stream");

/* Start with an empty image information structure. */
memset(ImageInfo, 0, sizeof(*ImageInfo));

Expand Down Expand Up @@ -4377,8 +4375,6 @@ static int exif_read_from_file(image_info_type *ImageInfo, char *FileName, int r
int ret;
php_stream *stream;

php_printf("exif_read_from_file");

stream = php_stream_open_wrapper(FileName, "rb", STREAM_MUST_SEEK | IGNORE_PATH, NULL);

if (!stream) {
Expand Down Expand Up @@ -4459,7 +4455,7 @@ PHP_FUNCTION(exif_read_data)
convert_to_string(stream);

if (!Z_STRLEN_P(stream)) {
exif_error_docref(NULL EXIFERR_CC, &ImageInfo, E_WARNING, "Filename cannot be empty");
exif_error_docref(NULL, EXIFERR_CC, &ImageInfo, E_WARNING, "Filename cannot be empty");

RETURN_FALSE;
}
Expand Down

0 comments on commit 7845182

Please sign in to comment.