From 1cad06afdadc426ecc0b4389bc7d92449422d623 Mon Sep 17 00:00:00 2001 From: "Thies C. Arntzen" Date: Tue, 14 Dec 1999 04:32:54 +0000 Subject: [PATCH] (getimagesize) grrr, fixed newly (30 min ago) introduced NPR --- ext/standard/image.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/standard/image.c b/ext/standard/image.c index 4749f03ec8..5c1578faf6 100644 --- a/ext/standard/image.c +++ b/ext/standard/image.c @@ -347,7 +347,11 @@ PHP_FUNCTION(getimagesize) result = php3_handle_gif (fp); itype = 1; } else if (!memcmp(filetype, php3_sig_jpg, 3)) { - result = php3_handle_jpeg(fp,*info); + if (info) { + result = php3_handle_jpeg(fp,*info); + } else { + result = php3_handle_jpeg(fp,NULL); + } itype = 2; } else if (!memcmp(filetype, php3_sig_png, 3)) { fseek(fp, 0L, SEEK_SET); -- 2.50.1