summaryrefslogtreecommitdiffstats
path: root/lib/mysql.php
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2017-01-08 18:12:19 -0800
committerDavey Shafik <me@daveyshafik.com>2017-01-08 18:12:19 -0800
commit57beac4c27a80ee9647bd4c8e71217f1bcbaf822 (patch)
tree01a6425b035017daeba5b8c323795b3c40c470fa /lib/mysql.php
parent30b85ece823f06b1b7d687beafcb4041773db378 (diff)
downloadphp7-mysql-shim-57beac4c27a80ee9647bd4c8e71217f1bcbaf822.zip
php7-mysql-shim-57beac4c27a80ee9647bd4c8e71217f1bcbaf822.tar.gz
php7-mysql-shim-57beac4c27a80ee9647bd4c8e71217f1bcbaf822.tar.bz2
Add warning to the class comment
Diffstat (limited to 'lib/mysql.php')
-rw-r--r--lib/mysql.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/mysql.php b/lib/mysql.php
index b5535bf..03f8561 100644
--- a/lib/mysql.php
+++ b/lib/mysql.php
@@ -9,8 +9,14 @@
*/
/**
- * A drop-in replacement for ext/mysql in PHP 7+
- * using ext/mysqli instead
+ * A drop-in replacement for ext/mysql in PHP 7+ using ext/mysqli instead
+ *
+ * This library is meant to be a _stop-gap_. It will be slower than using
+ * the native functions directly.
+ *
+ * You should switch to ext/pdo_mysql or ext/mysqli, and migrate to prepared
+ * queries (@see http://php.net/manual/en/pdo.prepared-statements.php) to
+ * ensure you are securely interacting with your database.
*/
namespace {