From: scottmacvicar at ntlworld dot com Operating system: * PHP version: 4CVS-2004-05-12 (stable) PHP Bug Type: GetImageSize related Bug description: getimagesize only checks global gif header
Description: ------------ A getimagesize can return a wrong value if corruption or intentional editing has changed the values held in the global header for the gif. It is possible to find the correct value by scanning through each frame and looking at the local image descriptor values for width and height and returning the largest value. Both Mozilla and IE do this as standard and ignore the global height and width. If anyone wants a sample gif I can email them it. -- Edit bug report at http://bugs.php.net/?id=28375&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28375&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28375&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28375&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28375&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28375&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28375&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28375&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28375&r=support Expected behavior: http://bugs.php.net/fix.php?id=28375&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28375&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28375&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28375&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28375&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28375&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28375&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28375&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28375&r=float