]> granicus.if.org Git - php/commitdiff
Fixed bug #75616
authorJaromír Doleček <jdolecek@NetBSD.org>
Sun, 17 Dec 2017 11:56:37 +0000 (12:56 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 17 Dec 2017 11:56:37 +0000 (12:56 +0100)
PDO can be built shared on Darwin nowadays. There used to be issues
relating to symbol references between dynamically loaded shared
objects.

NEWS
ext/pdo/config.m4

diff --git a/NEWS b/NEWS
index b054c19a6f64be50297d0e94d10cf4206d56dc41..05a584b995e0514af69f091119729f08e345a105 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,10 @@ PHP                                                                        NEWS
     (Nikita, Laruence)
   . Fixed bug #75698 (Using @ crashes php7.2-fpm). (Nikita)
 
+- PDO:
+  . Fixed bug #75616 (PDO extension doesn't allow to be built shared on Darwin).
+    (jdolecek)
+
 - PDO MySQL:
   . Fixed bug #75615 (PDO Mysql module can't be built as module). (jdolecek)
 
index 786c70382abfcf7aa1c67a81ad799585820cc379..8cbf21733deff1983ca8ca882bc39b826643fd13 100755 (executable)
@@ -37,20 +37,6 @@ if test "$PHP_PDO" != "no"; then
 
   PHP_PDO_PEAR_CHECK
 
-  if test "$ext_shared" = "yes" ; then
-    case $host_alias in
-      *darwin*)
-          AC_MSG_ERROR([
-Due to the way that loadable modules work on OSX/Darwin, you need to
-compile the PDO package statically into the PHP core.
-
-Please follow the instructions at: http://netevil.org/node.php?nid=202
-for more detail on this issue.
-          ])
-        ext_shared=no
-        ;;
-    esac
-  fi
   PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
   ifdef([PHP_ADD_EXTENSION_DEP],
   [