Permalink
Browse files

chore(database): Elgg now uses PDO MySQL instead of ext/mysql

BREAKING CHANGE:
Any code that relies of mysql_* functions (expecting an implicit
connection) will fail. Also any handler functions passed to the
execute_delayed_read/write_query() function will now receive a
Doctrine\DBAL\Driver\Statement instead of an ext/mysql resource.
  • Loading branch information...
mrclay committed May 18, 2015
1 parent bea4fdf commit 96453494f9ec1ef5152582737cb5d5719ca7e55b
View
@@ -8,10 +8,11 @@
"type": "project",
"require": {
"php": "~5.5",
"ext-mysql": "*",
"ext-pdo": "*",
"ext-gd": "*",
"ext-json": "*",
"ext-xml": "*",
"doctrine/dbal": "~2.5",
"symfony/http-foundation": "~2.6",
"mrclay/minify": "~2.0",
"knplabs/gaufrette": "~0.1.0",
View
@@ -84,7 +84,21 @@ Dropped login-over-https feature
--------------------------------
For the best security and performance, serve all pages over HTTPS by switching
the scheme in your site's wwwroot to `https` at http://yoursite.tld/admin/settings/advanced
the scheme in your site's wwwroot to ``https`` at http://yoursite.tld/admin/settings/advanced
Elgg has migrated from ext/mysql to PDO MySQL
---------------------------------------------
Elgg now uses a ``PDO_MYSQL`` connection and no longer uses any ext/mysql functions. If you use
``mysql_*`` functions, implicitly relying on an open connection, these will fail.
If your code uses one of the following functions, read below.
- ``execute_delayed_write_query()``
- ``execute_delayed_read_query()``
If you provide a callable ``$handler`` to be called with the results, your handler will now receive a
``\Doctrine\DBAL\Driver\Statement`` object. Formerly a ext/mysql ``result`` resource was passed.
engine/start.php is deprecated
------------------------------
@@ -126,6 +140,7 @@ Removed Functions
- execute_delayed_query()
- get_db_link()
- load_plugins()
- mysql_*()
Removed Plugin Hooks
--------------------
@@ -7,7 +7,7 @@ Installing Elgg on Ubuntu Linux
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5 libapache2-mod-php5 php5-mysql
sudo apt-get install php5 libapache2-mod-php5 php5-mysqlnd
sudo apt-get install phpmyadmin
sudo a2enmod rewrite
Oops, something went wrong.

0 comments on commit 9645349

Please sign in to comment.