#45431 [Opn->Csd]: getimagesize() can't handle a colon in filename parameter
ID: 45431
User updated by: hundrambit at gmail dot com
Reported By: hundrambit at gmail dot com
-Status: Open
+Status: Closed
Bug Type: GetImageSize related
Operating System: Windows XP Professional + SP3
PHP Version: 5.2.6
New Comment:
This information is invalid.
Previous Comments:
------------------------------------------------------------------------
[2008-07-04 13:38:37] hundrambit at gmail dot com
Description:
------------
getimagesize() function will return FALSE when a remote file containing
a colon (:) in filename is specified. It can't be handled / opened.
This image is used as example:
http://inattack.ru/bar/inattack_bar_2012_2:10_FFFFFF_5_0.jpg
PHP configuration allows remote files.
Reproduce code:
---------------
$res =
@getimagesize("http://inattack.ru/bar/inattack_bar_2012_2:10_FFFFFF_5_0.jpg");
if ($res === false) {
echo "Failed to open target image.";
} else {
echo "WxH: ".$res[0]."x".$res[1];
}
Expected result:
----------------
$res should return array with 5 elements, as it does when same image
without a colon in filename is specified.
Actual result:
--------------
A FALSE is returned.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45431&edit=1
Thread (2 messages)