Bug #57833 [Opn->Dup]: PDO shouldn't disable dynamic build

From: Date: Sun, 17 Dec 2017 11:59:43 +0000
Subject: Bug #57833 [Opn->Dup]: PDO shouldn't disable dynamic build
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213148@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=57833&edit=1 ID: 57833 Updated by: nikic@php.net Reported by: jdolecek at netbsd dot org Summary: PDO shouldn't disable dynamic build -Status: Open +Status: Duplicate Type: Bug Package: PDO related Operating System: Mac OS X 10.4.10 PHP Version: 5.2.1 Block user comment: N Private report: N New Comment: Duplicate of bug #75616, which just got merged -- 10 years later :) Previous Comments: ------------------------------------------------------------------------ [2007-09-11 16:36:14] jdolecek at netbsd dot org Description: ------------ 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. Fix: --- config.m4.orig 2006-05-02 04:47:43.000000000 +0200 +++ config.m4 @@ -34,22 +34,6 @@ if test "$PHP_PDO" != "no"; then PHP_PDO_PEAR_CHECK - 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: http://netevil.org/node.php?nid=202 -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) ifdef([PHP_ADD_EXTENSION_DEP], [ Reproduce code: --------------- phpize ./configure --with-pdo make Expected result: ---------------- Extension builds Actual result: -------------- Build writes: Build complete. Don't forget to run 'make test'. --- but nothing is actually done. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=57833&edit=1

« previous php.bugs (#213148) next »