1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 01:53:36 +02:00

Fix newly introduced crash on a file-not-found

This commit is contained in:
Rasmus Lerdorf
2001-08-04 18:08:13 +00:00
parent 58ee4e47a4
commit cc40cdc7d7

View File

@@ -1137,7 +1137,7 @@ PHP_FUNCTION(read_exif_data)
ret = php_read_jpeg_exif(&ImageInfo, Z_STRVAL_PP(p_name), readall);
if (array_init(return_value) == FAILURE) {
if (ret==FALSE || array_init(return_value) == FAILURE) {
RETURN_FALSE;
}
add_assoc_string(return_value,"FileName",ImageInfo.FileName,1);