|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-05 17:28 UTC] scottmac@php.net
[2007-10-13 18:10 UTC] scottmac@php.net
[2007-10-14 23:29 UTC] marian at devourmedia dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 20:00:01 2025 UTC |
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.