diff options
author | Davey Shafik <me@daveyshafik.com> | 2017-01-10 21:03:41 -0800 |
---|---|---|
committer | Davey Shafik <me@daveyshafik.com> | 2017-01-10 21:03:41 -0800 |
commit | 5319816ad1fdd17c87295c2664f50c4317eaabf8 (patch) | |
tree | be3a0d88b48c86f8c675d75c86d1ad40c99b5d13 | |
parent | 87a789869e5064bc7b790e287e5df9207a513c88 (diff) | |
download | php7-mysql-shim-5319816ad1fdd17c87295c2664f50c4317eaabf8.zip php7-mysql-shim-5319816ad1fdd17c87295c2664f50c4317eaabf8.tar.gz php7-mysql-shim-5319816ad1fdd17c87295c2664f50c4317eaabf8.tar.bz2 |
Add a single deprecation notice on load
-rw-r--r-- | lib/mysql.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mysql.php b/lib/mysql.php index d2d9772..8639800 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -25,6 +25,12 @@ namespace { trigger_error('php7-mysql-shim: ext/mysqli is required', E_USER_ERROR); } + trigger_error( + "php7-mysql-shim: The mysql extension is deprecated " + . "and was removed in the PHP 7.0: use mysqli or PDO instead.", + E_USER_DEPRECATED + ); + define('MYSQL_ASSOC', 1); define('MYSQL_NUM', 2); define('MYSQL_BOTH', 3); |