summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorAdam Harvey <aharvey@php.net>2012-12-10 22:12:09 +0800
committerAdam Harvey <aharvey@php.net>2012-12-10 22:12:09 +0800
commitb7091aaf0137d97cf4aa4a402ec50b3946d369c0 (patch)
tree52618e911add69133e2f2eff4c976e9fe9ecd999 /UPGRADING
parentc007ba4740e90a7a73bc8c6350804670e4b49cc1 (diff)
downloadphp-git-b7091aaf0137d97cf4aa4a402ec50b3946d369c0.tar.gz
Deprecate ext/mysql.
Per https://wiki.php.net/rfc/mysql_deprecation, connecting to a MySQL database via ext/mysql now generates an E_DEPRECATED error. This commit includes the minimal EXPECTF updates required for the test suite to pass: it may be preferable to refactor some of the tests to suppress deprecation errors in situations where no other error is expected from mysql_[p]connect(), but I'm not enough of a MySQL expert to want to get my hands that dirty in a long standing test suite.
Diffstat (limited to 'UPGRADING')
-rwxr-xr-xUPGRADING4
1 files changed, 4 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index b01a399697..f65e868704 100755
--- a/UPGRADING
+++ b/UPGRADING
@@ -85,6 +85,10 @@ PHP 5.5 UPGRADE NOTES
3. Deprecated Functionality
========================================
+- The original MySQL extension is now deprecated, and will generate deprecation
+ warnings when connecting to a database through mysql_connect(),
+ mysql_pconnect() or by establishing an implicit connection. Use MySQLi or PDO
+ instead.
- The preg_replace /e modifier is now deprecated. Use
preg_replace_callback instead.
(https://wiki.php.net/rfc/remove_preg_replace_eval_modifier)