[PHP-CVS] [php-src] master: ext/gd: Fix two external libgd tests (#23138)

[email protected] (Lothar Serra Mari via GitHub)
Newsgroups php.cvs
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.