Bug #71848 [NEW]: getimagesize with $imageinfo returns false

From: Date: Thu, 17 Mar 2016 19:33:24 +0000
Subject: Bug #71848 [NEW]: getimagesize with $imageinfo returns false
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199904@lists.php.net to get a copy of this message
From: mail at mike-gladysch dot de Operating system: irrelevant PHP version: Irrelevant Package: GetImageSize related Bug Type: Bug Bug description:getimagesize with $imageinfo returns false 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 bug report at https://bugs.php.net/bug.php?id=71848&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71848&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71848&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71848&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71848&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71848&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71848&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71848&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71848&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71848&r=support Expected behavior: https://bugs.php.net/fix.php?id=71848&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71848&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71848&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71848&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71848&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71848&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71848&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71848&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71848&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71848&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71848&r=mysqlcfg

« previous php.bugs (#199904) next »