summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2015-12-06 02:16:13 -0500
committerDavey Shafik <me@daveyshafik.com>2015-12-06 02:25:14 -0500
commitc8e04f5038999573f44a32527a47e0f5a0121b59 (patch)
treeff2f4921a66abe085512fd460aa50b75a16742ea /README.md
parent418d40a4eca04d28e9f079bd0942c0c2ec02e9c4 (diff)
downloadphp7-mysql-shim-c8e04f5038999573f44a32527a47e0f5a0121b59.zip
php7-mysql-shim-c8e04f5038999573f44a32527a47e0f5a0121b59.tar.gz
php7-mysql-shim-c8e04f5038999573f44a32527a47e0f5a0121b59.tar.bz2
Update README
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 8abfae5..078e553 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,6 @@
+[![Build Status](https://travis-ci.org/dshafik/php7-mysql-shim.svg?branch=master)](https://travis-ci.org/dshafik/php7-mysql-shim)
+[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/dshafik/php7-mysql-shim/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/dshafik/php7-mysql-shim/?branch=master)
+[![Code Coverage](https://scrutinizer-ci.com/g/dshafik/php7-mysql-shim/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/dshafik/php7-mysql-shim/?branch=master)
# PHP 7 Shim for ext/mysql
This library attempts to create a drop-in replacement for ext/mysql on PHP 7 using mysqli.
@@ -21,7 +24,7 @@ Once the file is included, it will create `mysql_*` function if they don't alrea
## Caveats
-The only things that should break are calls to `is_resource()` on MySQL connections and results, as these
-are now their `mysqli` equivalents.
-
-Additionally, some errors are now from `ext/mysqli`, and others are `E_USER_WARNING` instead of `E_WARNING`.
+- Calls to `is_resource()` and `get_resource_type()` on MySQL connections and results will fail as these are now their `mysqli` equivalents.
+-Some errors are now from `ext/mysqli`, and others are `E_USER_WARNING` instead of `E_WARNING`.
+- Column lengths reported by `mysql_field_len()` assume latin1
+- You must prefix all calls to `mysql_*` with a `\` (e.g. `\mysql_connect()`;