|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-10 15:17 UTC] laruence@php.net
[2012-06-10 15:47 UTC] dnied at tiscali dot it
[2013-10-01 15:26 UTC] mike@php.net
-Status: Open
+Status: Feedback
[2013-10-01 15:26 UTC] mike@php.net
[2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 00:00:02 2025 UTC |
Description: ------------ The getimagesize function does not work with some (allegedly supported) images. I could not observe this on images stored locally, so it only seems to affect images retrieved via the http wrapper. FWIW, URL length doesn't seem to affect this: I tried a shortened URL for the image that didn't work, and it still didn't work. Test script: --------------- ~> php -r '$imgInfo = getimagesize("http://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Disney_Concert_Hall_by_Carol_Highsmith_edit2.jpg/767px-Disney_Concert_Hall_by_Carol_Highsmith_edit2.jpg"); print_r($imgInfo);' ~> ~> ~> php -r '$imgInfo = getimagesize("https://bugs.php.net/images/logo.gif");print_r($imgInfo);' Array ( [0] => 130 [1] => 67 [2] => 1 [3] => width="130" height="67" [bits] => 8 [channels] => 3 [mime] => image/gif ) ~> Expected result: ---------------- An array of image properties, for both images Actual result: -------------- A boolean false on the 1st image, the expected array of image properties on the 2nd one.