Skip to content

Commit 79ce22d

Browse files
committed
Add getimagesize()'s test for avif using monochrome.
1 parent 3b51c9c commit 79ce22d

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
--TEST--
2+
GetImageSize() for avif using monochrome format
3+
--FILE--
4+
<?php
5+
/* Prototype : proto array getimagesize(string imagefile [, array info])
6+
* Description: Get the size of an image as 4-element array
7+
* Source code: ext/standard/image.c
8+
* Alias to functions:
9+
*/
10+
11+
echo "*** Testing getimagesize() : avif using monochrome format ***\n";
12+
var_dump(getimagesize(__DIR__ . "/monochrome.avif", $arr));
13+
var_dump($arr);
14+
?>
15+
--EXPECT--
16+
*** Testing getimagesize() : avif using monochrome format ***
17+
array(7) {
18+
[0]=>
19+
int(8)
20+
[1]=>
21+
int(1)
22+
[2]=>
23+
int(19)
24+
[3]=>
25+
string(20) "width="8" height="1""
26+
["bits"]=>
27+
int(8)
28+
["channels"]=>
29+
int(1)
30+
["mime"]=>
31+
string(10) "image/avif"
32+
}
33+
array(0) {
34+
}
348 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)