]> granicus.if.org Git - php/commitdiff
Remove PHP_MYSQL variable
authorPeter Kokot <peterkokot@gmail.com>
Sun, 14 Jul 2019 11:48:44 +0000 (13:48 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 14 Jul 2019 11:48:44 +0000 (13:48 +0200)
PHP_MYSQL variable was once defined by the ext/mysql (--with-mysql).

Closes GH-4399

configure.ac
ext/pdo_mysql/config.m4

index 653e979fca0b9c881f7214732f28de2944735113..ed03c46e7cb8731d84445df52df478ba2842eb4e 100644 (file)
@@ -1436,12 +1436,6 @@ if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
   CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags"
 fi
 
-dnl This will go away, if we have a facility to run per-extension code after the
-dnl thread_safety decision was done.
-if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
-  CPPFLAGS="$CPPFLAGS -DTHREAD=1"
-fi
-
 if test "$PHP_WERROR" = "yes"; then
   CFLAGS="$CFLAGS -Werror"
   CPPFLAGS="$CPPFLAGS -Werror"
index 546152fb1f614ee0274d1b96616d595326e0f7dc..6f0302feab9a8acd1b4ac2512942d961cace2d34 100644 (file)
@@ -131,15 +131,14 @@ if test "$PHP_PDO_MYSQL" != "no"; then
     AC_DEFINE_UNQUOTED(PDO_MYSQL_UNIX_ADDR, "$PDO_MYSQL_SOCKET", [ ])
   fi
 
-  dnl fix after renaming to pdo_mysql
   PHP_NEW_EXTENSION(pdo_mysql, pdo_mysql.c mysql_driver.c mysql_statement.c, $ext_shared,,-I$pdo_cv_inc_path -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
-  ifdef([PHP_ADD_EXTENSION_DEP],
-  [
-    PHP_ADD_EXTENSION_DEP(pdo_mysql, pdo)
-    if test "$PHP_MYSQL" = "mysqlnd"; then
-      PHP_ADD_EXTENSION_DEP(pdo_mysql, mysqlnd)
-    fi
-  ])
+
+  PHP_ADD_EXTENSION_DEP(pdo_mysql, pdo)
+
+  if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then
+    PHP_ADD_EXTENSION_DEP(pdo_mysql, mysqlnd)
+  fi
+
   PDO_MYSQL_MODULE_TYPE=external
 
   PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)