[php-src] master: ext/gd: Fix two external libgd tests (#23138)
| From: | Lothar Serra Mari via GitHub | Date: | Sun, 09 Aug 2026 14:01:44 +0000 |
| Subject: | [php-src] master: ext/gd: Fix two external libgd tests (#23138) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-140560@lists.php.net to get a copy of this message | ||
Author: Lothar Serra Mari (lotharsm)
Committer: GitHub (web-flow)
Pusher: devnexen
Date: 2026-08-09T15:01:41+01:00
Commit: https://github.com/php/php-src/commit/6ce322e0d14b655d96561d1622288f33a81b3527
Raw diff: https://github.com/php/php-src/commit/6ce322e0d14b655d96561d1622288f33a81b3527.diff
ext/gd: Fix two external libgd tests (#23138)
Changed paths:
M ext/gd/tests/bug39780_extern.phpt
M ext/gd/tests/libgd00086_extern.phpt
Diff:
diff --git a/ext/gd/tests/bug39780_extern.phpt b/ext/gd/tests/bug39780_extern.phpt
index 438816fe22c6..d4aadafd153e 100644
--- a/ext/gd/tests/bug39780_extern.phpt
+++ b/ext/gd/tests/bug39780_extern.phpt
@@ -16,9 +16,9 @@ $im = imagecreatefrompng(__DIR__ . '/bug39780.png');
var_dump($im);
?>
--EXPECTF--
-Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data%win %s on
line %d
+Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data in %s on
line %d
-Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition %d%win %s on line %d
+Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in %s on line %d
Warning: imagecreatefrompng(): "%sbug39780.png" is not a valid PNG file in %s on line %d
bool(false)
diff --git a/ext/gd/tests/libgd00086_extern.phpt b/ext/gd/tests/libgd00086_extern.phpt
index a3585180b83e..1fcdf8d63dfe 100644
--- a/ext/gd/tests/libgd00086_extern.phpt
+++ b/ext/gd/tests/libgd00086_extern.phpt
@@ -16,9 +16,9 @@ $im = imagecreatefrompng(__DIR__ . '/libgd00086.png');
var_dump($im);
?>
--EXPECTF--
-Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data%win %s on
line %d
+Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data in %s on
line %d
-Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition %d%win %s on line %d
+Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in %s on line %d
Warning: imagecreatefrompng(): "%slibgd00086.png" is not a valid PNG file in %s on line
%d
bool(false)