[php-src] master: Merge branch 'PHP-8.5' into master

Levi Morrison <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Levi Morrison (morrisonlevi)
Date: 2026-08-19T09:57:57-06:00

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

Merge branch 'PHP-8.5' into master

Changed paths:
  M  ext/opcache/zend_shared_alloc.c


Diff:

diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c
index 9a731d10bab2..3d6d2a840c33 100644
--- a/ext/opcache/zend_shared_alloc.c
+++ b/ext/opcache/zend_shared_alloc.c
@@ -17,15 +17,11 @@
    +----------------------------------------------------------------------+
 */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#if defined(__linux__) && defined(HAVE_MEMFD_CREATE)
-# ifndef _GNU_SOURCE
-#  define _GNU_SOURCE
+#if defined(__linux__)
+# include <php_config.h>
+# if defined(HAVE_MEMFD_CREATE)
+#  include <sys/mman.h>
 # endif
-# include <sys/mman.h>
 #endif
 
 #include <errno.h>
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.