Hello,

While building PHP for BLFS, I noticed that one of the "Command
Explanations" is out of date. --with-mysql is referenced both on the
page and in the php_configure.txt file.

Support for the old MySQL extension was dropped in PHP 7.0, with mysqli
or PDO recommended as replacements.

Upstream commit:
***
From fd1578c196575c7e120a84ee030bb87c14a199b0 Mon Sep 17 00:00:00 2001
From: Adam Harvey <[email protected]>
Date: Thu, 5 Mar 2015 00:18:40 +0000
Subject: [PATCH] Remove the deprecated MySQL extension.

Relevant RFC:
https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7
***

Configuring using the "--with-mysql" switch results in an error.

Thanks,
Mikel Rychliski

Index: general/prog/php.xml
===================================================================
--- general/prog/php.xml        (revision 16792)
+++ general/prog/php.xml        (working copy)
@@ -350,11 +350,17 @@
       </para>
 
       <para>
-        <option>--with-mysql</option>: This option
-        includes <application>MariaDB/MySQL</application> support.
+        <option>--with-mysqli=mysqlnd</option>: This option
+        includes <application>MariaDB/MySQL</application> support using
+        the MySQL Native Driver.
       </para>
 
       <para>
+        <option>--with-mysql-sock=/var/run/mysql</option>: This option sets
+        the default location of the MySQL unix socket file.
+      </para>
+
+      <para>
         <option>--disable-libxml</option>: This option
         allows building PHP without <application>libxml2</application>
         installed.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to