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
