Skip to content

Commit 4837099

Browse files
committed
More tests
1 parent da41102 commit 4837099

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

ext/gd/tests/gh16232.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ $bad_webp = __DIR__ . "/gh16232.webp";
99
copy($good_webp, $bad_webp);
1010
var_dump(imagecreatefromwbmp($bad_webp));
1111
$data = file_get_contents($bad_webp);
12-
$data[3] = chr(-1);
12+
$data[3] = chr(255);
1313
file_put_contents($bad_webp, $data);
1414
var_dump(imagecreatefromwbmp($bad_webp));
15-
$data[3] = chr(1000);
15+
$data[3] = chr(232);
1616
file_put_contents($bad_webp, $data);
1717
var_dump(imagecreatefromwbmp($bad_webp));
1818
unlink($bad_webp);

ext/standard/tests/array/array_filter_variation9.phpt

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Test array_filter() function : usage variations - built-in functions as 'callbac
88

99
echo "*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***\n";
1010

11-
$input = array(0, 1, -1, 10, 100, 1000);
11+
$input = array(0, 1, 10, 100);
1212

1313
// using built-in function 'is_int' as 'callback'
1414
var_dump( array_filter($input, 'is_int') );
@@ -34,33 +34,25 @@ echo "Done"
3434
?>
3535
--EXPECT--
3636
*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***
37-
array(6) {
37+
array(4) {
3838
[0]=>
3939
int(0)
4040
[1]=>
4141
int(1)
4242
[2]=>
43-
int(-1)
44-
[3]=>
4543
int(10)
46-
[4]=>
44+
[3]=>
4745
int(100)
48-
[5]=>
49-
int(1000)
5046
}
51-
array(6) {
47+
array(4) {
5248
[0]=>
5349
int(0)
5450
[1]=>
5551
int(1)
5652
[2]=>
57-
int(-1)
58-
[3]=>
5953
int(10)
60-
[4]=>
54+
[3]=>
6155
int(100)
62-
[5]=>
63-
int(1000)
6456
}
6557
array_filter(): Argument #2 ($callback) must be a valid callback or null, function "echo" not found or invalid function name
6658
array_filter(): Argument #2 ($callback) must be a valid callback or null, function "isset" not found or invalid function name

0 commit comments

Comments
 (0)