-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug #81265: getimagesize returns 0 for 256px ICO images
Set ICO height/width to 256 if 0.
- Loading branch information
1 parent
a054ef2
commit 8f97f82
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--TEST-- | ||
GetImageSize() for ico format with 256px height | ||
--FILE-- | ||
<?php | ||
echo "*** Testing getimagesize() : 256px ico ***\n"; | ||
var_dump(getimagesize(__DIR__ . "/32x256.ico")); | ||
|
||
?> | ||
===DONE=== | ||
--EXPECT-- | ||
*** Testing getimagesize() : 256px ico *** | ||
array(6) { | ||
[0]=> | ||
int(32) | ||
[1]=> | ||
int(256) | ||
[2]=> | ||
int(17) | ||
[3]=> | ||
string(23) "width="32" height="256"" | ||
["bits"]=> | ||
int(8) | ||
["mime"]=> | ||
string(24) "image/vnd.microsoft.icon" | ||
} | ||
===DONE=== |