From 0d6e57578fe7c7a072e0525b44358173b137876d Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 12 Apr 2018 12:49:56 +0000 Subject: [PATCH] Add Readme for installing old (not mysqli or mysql_pdo) mysql drivers. --- DOC/README.php7_old_mysql | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 DOC/README.php7_old_mysql diff --git a/DOC/README.php7_old_mysql b/DOC/README.php7_old_mysql new file mode 100644 index 0000000..31b4c7c --- /dev/null +++ b/DOC/README.php7_old_mysql @@ -0,0 +1,38 @@ +## - How to put lagacy MySQL functions back into PHP 7 +## - +## - see: https://ckon.wordpress.com/2015/08/06/put-mysql-functions-back-into-php-7/ +## - +## - So you can use legacy code that uses the mysql_* functions. + + +# - Note: +# - +# - MySQL native driver must be enabled at php 7.1 installation. This will +# - be done implicitly, when required by other extensions +# - --with-mysqli=mysqlnd +# - or +# - --with-pdo-mysql=mysqlnd +# - +# - Otherwise you have to enabled it with option: +# - --enable-mysqlnd +# - + +# - Install +# - +mkdir /usr/local/src/php_mysql + +cd /usr/local/src/php_mysql + +git clone https://github.com/php/pecl-database-mysql mysql --recursive + +cd mysql +phpize +./configure +make +make install + + +# - Then edit your php.ini +# - Somewhere either in the “Extensions” section or “MySQL” section, simply add this line: +# - +# - extension = /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mysql.so