We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd34f4 commit 5d40953Copy full SHA for 5d40953
ext/gd/tests/gh20551.phpt
@@ -0,0 +1,22 @@
1
+--TEST--
2
+GH-20551: (imagegammacorrect out of range input/output value)
3
+--EXTENSIONS--
4
+gd
5
+--FILE--
6
+<?php
7
+$im = imagecreate(64, 32);
8
+
9
+try {
10
+ imagegammacorrect($im, NAN, 1.0);
11
+} catch (\ValueError $e) {
12
+ echo $e->getMessage(), PHP_EOL;
13
+}
14
15
+ imagegammacorrect($im, -NAN, 1.0);
16
17
18
19
+?>
20
+--EXPECT--
21
+An input divided by an output must be finite
22
0 commit comments