[php-src] PHP-8.4: ext/gd/tests/gh19{666,739}.phpt: skip for external libgd

Michael Orlitzky via David Carlier <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Michael Orlitzky (orlitzky)
Committer: David Carlier (devnexen)
Date: 2026-07-13T05:11:05+01:00

Commit: https://github.com/php/php-src/commit/b51f575ba1a15f426c1356b104a9a8b1084029d6
Raw diff: https://github.com/php/php-src/commit/b51f575ba1a15f426c1356b104a9a8b1084029d6.diff

ext/gd/tests/gh19{666,739}.phpt: skip for external libgd

These two are regression tests for the bundled libgd, we have to skip
them if an external libgd is used.

close GH-22711

Changed paths:
  M  ext/gd/tests/gh19666.phpt
  M  ext/gd/tests/gh19739.phpt


Diff:

diff --git a/ext/gd/tests/gh19666.phpt b/ext/gd/tests/gh19666.phpt
index 2d82b9b44760..b1409946aa0a 100644
--- a/ext/gd/tests/gh19666.phpt
+++ b/ext/gd/tests/gh19666.phpt
@@ -2,6 +2,10 @@
 GH-19666 (Unexpected nan value in imageconvolution)
 --EXTENSIONS--
 gd
+--SKIPIF--
+<?php
+    if (!GD_BUNDLED) die("skip requires bundled GD library\n");
+?>
 --FILE--
 <?php
 $image = imagecreatetruecolor(180, 30);
diff --git a/ext/gd/tests/gh19739.phpt b/ext/gd/tests/gh19739.phpt
index 7dce387b780e..7ef73aeab67d 100644
--- a/ext/gd/tests/gh19739.phpt
+++ b/ext/gd/tests/gh19739.phpt
@@ -2,6 +2,10 @@
 GH-19739 (integer overflow in imageellipse / imagefilledellipse)
 --EXTENSIONS--
 gd
+--SKIPIF--
+<?php
+    if (!GD_BUNDLED) die("skip requires bundled GD library\n");
+?>
 --FILE--
 <?php
 $im = imagecreatetruecolor(400, 300);
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.