|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57833 PDO shouldn't disable dynamic build
Submitted: 2007-09-11 16:36 UTC Modified: 2017-12-17 11:59 UTC
From: jdolecek at netbsd dot org Assigned:
Status: Duplicate Package: PDO related
PHP Version: 5.2.1 OS: Mac OS X 10.4.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: jdolecek at netbsd dot org
New email:
PHP Version: OS:


 [2007-09-11 16:36 UTC] jdolecek at netbsd dot org
config.m4 currently disables dynamic build when building on Darwin. After running phpize, the build directory ends up with do-nothing Makefile and the extension cannot build.

This is due to fact that dynamic PDO extension didn't work. Fix for this is submitted as PHP bug #42629, please also fix PDO configure script.


--- config.m4.orig      2006-05-02 04:47:43.000000000 +0200
+++ config.m4
@@ -34,22 +34,6 @@ if test "$PHP_PDO" != "no"; then


-  if test "$ext_shared" = "yes" ; then
-    case $host_alias in
-      *darwin*)
-        if test "$pdo_running_under_pear" = "1"; then
-          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:
-for more detail on this issue.
-          ])
-        fi
-        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)

Reproduce code:
./configure --with-pdo

Expected result:
Extension builds

Actual result:
Build writes:

Build complete.
Don't forget to run 'make test'.

but nothing is actually done.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 23:34 UTC]
-Package: PDO +Package: PDO related
 [2017-12-17 11:59 UTC]
-Status: Open +Status: Duplicate
 [2017-12-17 11:59 UTC]
Duplicate of bug #75616, which just got merged -- 10 years later :)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 12:01:29 2024 UTC