php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #72281
Patch Better_workaround_patch_for_NetBSD.diff revision 2016-06-12 16:44 UTC by tk at giga dot or dot at
Patch workaround_patch_for_NetBSD.diff revision 2016-05-28 08:12 UTC by tk at giga dot or dot at

Patch workaround_patch_for_NetBSD.diff for PCRE related Bug #72281

Patch version 2016-05-28 08:12 UTC

Return to Bug #72281 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: tk@giga.or.at

$NetBSD: patch-sapi_cli_Makefile.frag,v 1.1 2016/05/28 08:02:26 wiz Exp $

Needed on NetBSD with PaX MPROTEXT, otherwise core dump with:
#1  0x00000000004d0d87 in _pcre_jit_exec ()
#2  0x00000000004a53f1 in php_pcre_exec ()

--- sapi/cli/Makefile.frag.orig	2016-04-28 18:12:27.000000000 +0000
+++ sapi/cli/Makefile.frag
@@ -2,6 +2,9 @@ cli: $(SAPI_CLI_PATH)
 
 $(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CLI_OBJS)
 	$(BUILD_CLI)
+	@if test -f /usr/sbin/paxctl; then \
+		paxctl +m $(SAPI_CLI_PATH); \
+	fi
 
 install-cli: $(SAPI_CLI_PATH)
 	@echo "Installing PHP CLI binary:        $(INSTALL_ROOT)$(bindir)/"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Nov 26 22:01:33 2024 UTC