Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ext/gd/tests/bug73155.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Bug #73155 (imagegd2() writes wrong chunk sizes on boundaries)
--EXTENSIONS--
gd
--SKIPIF--
<?php
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.3.3', '>=')) {
die("skip test requires GD 2.3.2 or older");
}
?>
--FILE--
<?php
$im = imagecreate(64, 64);
Expand Down
6 changes: 6 additions & 0 deletions ext/gd/tests/bug73157.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Bug #73157 (imagegd2() ignores 3rd param if 4 are given)
--EXTENSIONS--
gd
--SKIPIF--
<?php
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.3.3', '>=')) {
die("skip test requires GD 2.3.2 or older");
}
?>
--FILE--
<?php
$im = imagecreate(8, 8);
Expand Down
6 changes: 6 additions & 0 deletions ext/gd/tests/bug73159.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Bug #73159 (imagegd2(): unrecognized formats may result in corrupted files)
--EXTENSIONS--
gd
--SKIPIF--
<?php
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.3.3', '>=')) {
die("skip test requires GD 2.3.2 or older");
}
?>
--FILE--
<?php
$im = imagecreatetruecolor(10, 10);
Expand Down
2 changes: 1 addition & 1 deletion ext/gd/tests/bug77973.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $im = imagecreatefromxbm($filepath);
var_dump($im);
?>
--EXPECTF--
Warning: imagecreatefromxbm(): Invalid XBM in %s on line %d
Warning: imagecreatefromxbm(): %cnvalid XBM in %s on line %d

Warning: imagecreatefromxbm(): "%s" is not a valid XBM file in %s on line %d
bool(false)
Expand Down