Bug #71848 [Opn->Fbk]: getimagesize with $imageinfo returns false

From: Date: Sat, 30 Jul 2016 19:52:14 +0000
Subject: Bug #71848 [Opn->Fbk]: getimagesize with $imageinfo returns false
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202737@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71848&edit=1 ID: 71848 Updated by: kalle@php.net Reported by: mail at mike-gladysch dot de Summary: getimagesize with $imageinfo returns false -Status: Open +Status: Feedback Type: Bug Package: GetImageSize related Operating System: irrelevant PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Can you provide a jpeg that can be used to replicate this bug? Previous Comments: ------------------------------------------------------------------------ [2016-03-18 08:28:53] mail at mike-gladysch dot de testet too with: PHP 7.1.0-dev (cli) (built: Mar 18 2016 09:01:15) ( NTS ) the three keys delivered within $info are: - APP0 (value starts with JFIF..) - APP1 (value starts with Exif..) - APP15 (Value starts with EditDetection..) ------------------------------------------------------------------------ [2016-03-17 19:33:21] mail at mike-gladysch dot de Description: ------------ When i call getimagesize with $imageinfo argument, it can occur (on some images), that the return value of the function is false. With my test image, $imageinfo contains 3 keys after call, but return value is false. There is no notice, warning or other information. Calling same function without $imageinfo returns correct result. tested PHP-Versions: - 5.5.9 - 7.0.2 Test script: --------------- $info = array(); $sizeInfo = getimagesize($fileName, $info); // returns false, $info not empty $sizeInfo = getimagesize($fileName); // returns correct size information Expected result: ---------------- Better solution should be: - return correct size information like call without $imageinfo - trigger an error or warning, if collecting data for $imageinfo causes an error ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71848&edit=1

« previous php.bugs (#202737) next »