From b8f94cdaffc2b0261625fec3ed741580768b967a Mon Sep 17 00:00:00 2001 From: jdolecek Date: Tue, 11 Sep 2007 20:14:46 +0000 Subject: add a patch to also adjust the Mac OS X-specific NSLinkModule()-based extension loading code to export all symbols (i.e. do equivalent of dlopen(..., RTLD_GLOBAL)), so that older Mac OS X without dlopen() (before 10.4) also load extensions properly patch also submitted as PHP bug# 42629 --- lang/php5/distinfo | 3 ++- lang/php5/patches/patch-ar | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 lang/php5/patches/patch-ar (limited to 'lang/php5') diff --git a/lang/php5/distinfo b/lang/php5/distinfo index 053e2854035..34cd3721e02 100644 --- a/lang/php5/distinfo +++ b/lang/php5/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.48 2007/09/04 23:39:31 jdolecek Exp $ +$NetBSD: distinfo,v 1.49 2007/09/11 20:14:46 jdolecek Exp $ SHA1 (php-5.2.4/php-5.2.4.tar.bz2) = 0e8f42d1363b17fbaeb3e7732ab1a501a9a12c8e RMD160 (php-5.2.4/php-5.2.4.tar.bz2) = 22728d27ec3ba3287943ea878fefbba0b4ffdc00 @@ -14,3 +14,4 @@ SHA1 (patch-an) = f07a08f8ee1a18f6371af9bd6c482d936e9220e4 SHA1 (patch-ao) = 4f22a112e5626b2f9fa029363c9e451e77136e97 SHA1 (patch-ap) = 5eb0e0e4244a993da93e36f8fcb5553454207fce SHA1 (patch-aq) = 0c9d48547da2fa80aa8357d23ad8505d1c0330df +SHA1 (patch-ar) = 10f4394dc62acd9b9e20fb86321fe2dcaca7e282 diff --git a/lang/php5/patches/patch-ar b/lang/php5/patches/patch-ar new file mode 100644 index 00000000000..0ffa801568a --- /dev/null +++ b/lang/php5/patches/patch-ar @@ -0,0 +1,13 @@ +$NetBSD: patch-ar,v 1.3 2007/09/11 20:14:46 jdolecek Exp $ + +--- Zend/zend_extensions.c.orig 2007-09-11 22:00:50.000000000 +0200 ++++ Zend/zend_extensions.c +@@ -243,7 +243,7 @@ void *zend_mh_bundle_load(char* bundle_p + return NULL; + } + +- bundle_handle = NSLinkModule(bundle_image, bundle_path, NSLINKMODULE_OPTION_PRIVATE); ++ bundle_handle = NSLinkModule(bundle_image, bundle_path, NSLINKMODULE_OPTION_NONE); + NSDestroyObjectFileImage(bundle_image); + + /* call the init function of the bundle */ -- cgit v1.2.3