diff --git a/devel/pecl-xdebug/Makefile b/devel/pecl-xdebug/Makefile index 034b495e2667..881530000e20 100644 --- a/devel/pecl-xdebug/Makefile +++ b/devel/pecl-xdebug/Makefile @@ -1,19 +1,18 @@ PORTNAME= xdebug DISTVERSION= 3.3.1 CATEGORIES= devel pear MAINTAINER= pizzamig@FreeBSD.org COMMENT= Xdebug extension for PHP WWW= https://www.xdebug.org/ LICENSE= PHP30 LICENSE_FILE= ${WRKSRC}/LICENSE USES= php:pecl,zend tar:tgz -IGNORE_WITH_PHP= 84 CONFIGURE_ARGS= --enable-xdebug SUB_FILES= pkg-message .include diff --git a/devel/pecl-xdebug/files/patch-src_lib_usefulstuff.c b/devel/pecl-xdebug/files/patch-src_lib_usefulstuff.c new file mode 100644 index 000000000000..41517a51c857 --- /dev/null +++ b/devel/pecl-xdebug/files/patch-src_lib_usefulstuff.c @@ -0,0 +1,14 @@ +--- src/lib/usefulstuff.c.orig 2024-08-03 13:55:22 UTC ++++ src/lib/usefulstuff.c +@@ -41,7 +41,11 @@ + #include "usefulstuff.h" + #include "log.h" + ++#if PHP_VERSION_ID <= 80300 + #include "ext/standard/php_lcg.h" ++#else ++#include "ext/random/php_random.h" ++#endif + #include "ext/standard/flock_compat.h" + #include "main/php_ini.h" +