File tree 5 files changed +26
-8
lines changed 5 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ PHP NEWS
3
3
?? ??? 2012, PHP 5.4.12
4
4
5
5
- Core:
6
- . Fixed bug #63982 (isset() inconsistently produces a fatal error on
6
+ . Fixed bug #63982 (isset() inconsistently produces a fatal error on
7
7
protected property). (Stas)
8
8
. Fixed bug #63943 (Bad warning text from strpos() on empty needle).
9
9
(Laruence)
10
10
. Fixed bug #63882 (zend_std_compare_objects crash on recursion). (Dmitry)
11
+ . Support BITMAPV5HEADER in getimagesize(). (AsamK, Lars)
11
12
12
13
- Litespeed:
13
14
. Fixed bug #63228 (-Werror=format-security error in lsapi code). (George)
@@ -26,7 +27,7 @@ PHP NEWS
26
27
. Fixed bug #63899 (Use after scope error in zend_compile). (Laruence)
27
28
. Fixed bug #63762 (Sigsegv when Exception::$trace is changed by user).
28
29
(Johannes)
29
- . Fixed bug #43177 (Errors in eval()'ed code produce status code 500).
30
+ . Fixed bug #43177 (Errors in eval()'ed code produce status code 500).
30
31
(Todd Ruth, Stas).
31
32
32
33
- Filter:
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ static struct gfxinfo *php_handle_bmp (php_stream * stream TSRMLS_DC)
159
159
result -> width = (((unsigned int )dim [ 5 ]) << 8 ) + ((unsigned int ) dim [ 4 ]);
160
160
result -> height = (((unsigned int )dim [ 7 ]) << 8 ) + ((unsigned int ) dim [ 6 ]);
161
161
result -> bits = ((unsigned int )dim [11 ]);
162
- } else if (size > 12 && (size <= 64 || size == 108 )) {
162
+ } else if (size > 12 && (size <= 64 || size == 108 || size == 124 )) {
163
163
result = (struct gfxinfo * ) ecalloc (1 , sizeof (struct gfxinfo ));
164
164
result -> width = (((unsigned int )dim [ 7 ]) << 24 ) + (((unsigned int )dim [ 6 ]) << 16 ) + (((unsigned int )dim [ 5 ]) << 8 ) + ((unsigned int ) dim [ 4 ]);
165
165
result -> height = (((unsigned int )dim [11 ]) << 24 ) + (((unsigned int )dim [10 ]) << 16 ) + (((unsigned int )dim [ 9 ]) << 8 ) + ((unsigned int ) dim [ 8 ]);
Original file line number Diff line number Diff line change @@ -23,7 +23,22 @@ GetImageSize()
23
23
var_dump ($ result );
24
24
?>
25
25
--EXPECT--
26
- array(11) {
26
+ array(12) {
27
+ ["test1bpix.bmp"]=>
28
+ array(6) {
29
+ [0]=>
30
+ int(500)
31
+ [1]=>
32
+ int(345)
33
+ [2]=>
34
+ int(6)
35
+ [3]=>
36
+ string(24) "width="500" height="345""
37
+ ["bits"]=>
38
+ int(32)
39
+ ["mime"]=>
40
+ string(14) "image/x-ms-bmp"
41
+ }
27
42
["test1pix.bmp"]=>
28
43
array(6) {
29
44
[0]=>
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
image_type_to_mime_type()
3
3
--SKIPIF--
4
- <?php
5
- if (!function_exists ('image_type_to_mime_type ' )) die ('skip image_type_to_mime_type() not available ' );
4
+ <?php
5
+ if (!function_exists ('image_type_to_mime_type ' )) die ('skip image_type_to_mime_type() not available ' );
6
6
require_once ('skipif_imagetype.inc ' );
7
7
?>
8
8
--FILE--
@@ -25,7 +25,9 @@ image_type_to_mime_type()
25
25
var_dump ($ result );
26
26
?>
27
27
--EXPECT--
28
- array(11) {
28
+ array(12) {
29
+ ["test1bpix.bmp"]=>
30
+ string(14) "image/x-ms-bmp"
29
31
["test1pix.bmp"]=>
30
32
string(14) "image/x-ms-bmp"
31
33
["test1pix.jp2"]=>
@@ -48,4 +50,4 @@ array(11) {
48
50
string(29) "application/x-shockwave-flash"
49
51
["test4pix.tif"]=>
50
52
string(10) "image/tiff"
51
- }
53
+ }
You can’t perform that action at this time.
0 commit comments