ports/lang/php83/files/patch-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h
Muhammad Moinur Rahman 58de784057 lang/php83: Update version 8.3.0=>8.3.1
- php modules while build with system pcre fails to run when using
  apache httpd and mod_php. So OPTIONIZE and add as a non-DEFAULT
  option. However to my knowledge and experience I haven't faced this
  with nginx and php-fpm yet. [1]
- There is another corner case with apache httpd and mod_php when run
  on 13.2-RELEASE or newer specially on versions where ASLR is by default
  turned on. All modules specialy opcache crashes httpd. So add a
  warning message to advise users to move into php-fpm. [2]

Thanks to brnrd@ for the patch. [2]

Changelog: https://www.php.net/ChangeLog-8.php#8.3.1

PR:		275522 [1], 268318 [2]
Reported by:	majo-bugs.freebsd.org@cerny.sk [1], zarychtam@plan-b.pwste.edu.pl [2]
2023-12-22 02:24:35 +01:00

20 lines
759 B
C

--- ext/pcre/pcre2lib/sljit/sljitConfigInternal.h.orig 2023-12-20 12:44:38 UTC
+++ ext/pcre/pcre2lib/sljit/sljitConfigInternal.h
@@ -308,7 +308,7 @@ extern "C" {
/* Type of public API functions. */
/*********************************/
-#ifndef SLJIT_API_FUNC_ATTRIBUTE
+#ifndef SLJIT_API_FUNC_ATTRIBUTE
#if (defined SLJIT_CONFIG_STATIC && SLJIT_CONFIG_STATIC)
/* Static ABI functions. For all-in-one programs. */
@@ -344,7 +344,7 @@ extern "C" {
* system provided method that should be defined below is used
* instead.
*/
-#if (!defined SLJIT_CACHE_FLUSH && defined __has_builtin)
+#if (!defined SLJIT_CACHE_FLUSH && defined __has_builtin && !defined SLJIT_CONFIG_PPC_32)
#if __has_builtin(__builtin___clear_cache) && !defined(__clang__)
/*