]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
For supported versions of Darwin, place dynamically loaded
authorJim Jagielski <jim@apache.org>
Mon, 22 Apr 2002 12:36:18 +0000 (12:36 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 22 Apr 2002 12:36:18 +0000 (12:36 +0000)
Apache extensions' public symbols into the global symbol
table. This allows dynamically loaded PHP extensions.
NOTE: this works as long as multiple modules don't
include overlapping symbols. Jim added the wrapper to
check for the existance of the option (which doesn't
exist in Rhapsody).

PR:
Obtained from:
Submitted by: Marko Karppinen <markonen@php.net>
Reviewed by: Jim Jagielski, Wilfredo Sanchez

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94753 13f79535-47bb-0310-9956-ffa450edef68

src/CHANGES
src/os/unix/os.c

index e05d27dce82bc5af25c428697cb00d2d7b4cb6d5..8aca1d58e0b48586c5f6650c421ad6bbbe5bb27e 100644 (file)
@@ -1,5 +1,10 @@
 Changes with Apache 1.3.25
 
+  *) For supported versions of Darwin, place dynamically loaded
+     Apache extensions' public symbols into the global symbol
+     table. This allows dynamically loaded PHP extensions.
+     [Marko Karppinen <markonen@php.net>]
+
   *) Correct proxy to be able to handle the unexpected 100-continue
      reponses sent during PUT or POST requests. [Graham Leggett]
 
index afccc315a98f9dcd0fb59fe3714cb41dd08e9b3c..0a07e849f80af0ee690b32986104c87b9578becd 100644 (file)
@@ -111,7 +111,11 @@ void *ap_os_dso_load(const char *path)
     if (NSCreateObjectFileImageFromFile(path, &image) !=
         NSObjectFileImageSuccess)
         return NULL;
+#if defined(NSLINKMODULE_OPTION_NONE)
+    handle = NSLinkModule(image, path, NSLINKMODULE_OPTION_NONE);
+#else
     handle = NSLinkModule(image, path, TRUE);
+#endif
     NSDestroyObjectFileImage(image);
     return handle;