|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-15 15:41 UTC] felipe@php.net
[2008-02-23 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Mar 19 00:00:01 2026 UTC |
Description: ------------ Getimagesize still gives errors for .ico files or no information at all. Also, there is no predefined constant for this type of image files. Considering that .ico is older than .png I believe that .ico should have full support. Reproduce code: --------------- $tmp='/tmp/favicon.ico'; $buffer=file_get_contents('http://www.favicon.com/favicon.ico'); file_put_contents($tmp,$buffer); list($ox, $oy, $type, $attr) = getimagesize($tmp); echo "ox={$ox}<br>oy={$oy}<br>type={$type}<br>attr={$attr}<br>size=".filesize($tmp)."<br>"; Expected result: ---------------- ox=16 oy=16 type=??? attr= size=318 Actual result: -------------- ox= oy= type= attr= size=318 getimagesize actually does not return any information at all about this image file.