From: marian at devourmedia dot com Operating system: Fedora PHP version: 5.2.4 PHP Bug Type: GetImageSize related Bug description: getimagesize on .ico images returns false
Description: ------------ PHP code should return information about the .ico file. Reproduce code: --------------- $fpath="/tmp/test.ico"; $buffer=file_get_contents('http://www.favicon.com/favicon.ico'); file_put_contents($fpath,$buffer); $result=getimagesize($fpath); if(is_bool($result)) echo "Boolean result: "; if(is_string($result)) echo "String result: "; if(is_numeric($result)) echo "Numeric result: "; if(is_array($result)) echo "Array result: "; echo "'"; print_r($result); echo "'"; Expected result: ---------------- Instead of returning "Array result: " and the values, it is returning "Boolean result:" Actual result: -------------- It is returning Boolean result which is false. -- Edit bug report at http://bugs.php.net/?id=42870&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42870&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42870&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42870&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42870&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42870&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42870&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42870&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42870&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42870&r=support Expected behavior: http://bugs.php.net/fix.php?id=42870&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42870&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42870&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42870&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42870&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42870&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42870&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42870&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42870&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42870&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42870&r=mysqlcfg