From: Kalle Sommer Nielsen Date: Thu, 13 Jul 2017 23:12:00 +0000 (+0200) Subject: Fix compile error with EXIF_DEBUG X-Git-Tag: php-7.2.0beta1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cf586cdfb6385753e477dbe8b2db11501c3a960;p=php Fix compile error with EXIF_DEBUG --- diff --git a/ext/exif/exif.c b/ext/exif/exif.c index 17c524f331..63b23d2f8c 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -4590,7 +4590,7 @@ PHP_FUNCTION(exif_read_data) exif_discard_imageinfo(&ImageInfo); #ifdef EXIF_DEBUG - php_error_docref1(NULL, p_name, E_NOTICE, "done"); + php_error_docref1(NULL, (Z_TYPE_P(stream) == IS_RESOURCE ? "" : Z_STRVAL_P(stream)), E_NOTICE, "Done"); #endif } /* }}} */ @@ -4672,7 +4672,7 @@ PHP_FUNCTION(exif_thumbnail) exif_discard_imageinfo(&ImageInfo); #ifdef EXIF_DEBUG - php_error_docref1(NULL, p_name, E_NOTICE, "Done"); + php_error_docref1(NULL, (Z_TYPE_P(stream) == IS_RESOURCE ? "" : Z_STRVAL_P(stream)), E_NOTICE, "Done"); #endif } /* }}} */