From: nirvn dot asia at gmail dot com Operating system: windows 2003 PHP version: 5.3.1 PHP Bug Type: GD related Bug description: createimagefromwbmp fails to process some .bmp files (mime type: x-ms-bmp)
Description: ------------ The GD function createimagefromwbmp() fails to process some .bmp (with mime type x-ms-bmp). For developers, this bmp (http://www.licadho-cambodia.org/php/test.bmp) will show the bug. Any chance of finding a quick fix for this one? Reproduce code: --------------- /* download http://www.licadho-cambodia.org/php/test.bmp */ $img = imagecreatefromwbmp(test.bmp') Expected result: ---------------- The function reads the .bmp and stores the image into $img. Actual result: -------------- The function returns a warning (below) and $img is empty. Warning: imagecreatefromwbmp() [function.imagecreatefromwbmp]: 'test.bmp' is not a valid WBMP file in ... -- Edit bug report at http://bugs.php.net/?id=50960&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50960&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50960&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50960&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50960&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50960&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50960&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50960&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50960&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50960&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50960&r=support Expected behavior: http://bugs.php.net/fix.php?id=50960&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50960&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50960&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50960&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50960&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50960&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50960&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50960&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50960&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50960&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50960&r=mysqlcfg