summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2020-01-02 02:19:00 -0800
committerGitHub <noreply@github.com>2020-01-02 02:19:00 -0800
commit8fadc664f64f188596d1bf42ab35dba463e012e6 (patch)
treec4049edeefb637695fc9f5fc72e65fe6242790f5
parent8c29c45a2e21f5b3745d0a0b42f7af71ead9579d (diff)
parent59ca7caa0d1645789088e83b9fb417c8a9b85440 (diff)
downloadphp7-mysql-shim-8fadc664f64f188596d1bf42ab35dba463e012e6.zip
php7-mysql-shim-8fadc664f64f188596d1bf42ab35dba463e012e6.tar.gz
php7-mysql-shim-8fadc664f64f188596d1bf42ab35dba463e012e6.tar.bz2
Merge pull request #48 from staabm/patch-11.0.0beta3
Added note about alternative approaches
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4504143..2a36071 100644
--- a/README.md
+++ b/README.md
@@ -36,4 +36,8 @@ Once the `lib/mysql.php` file is included, it will create `mysql_*` functions if
- 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`.
- You must use the `mysqli.*` INI entries instead of `mysql.*` (e.g. `mysqli.default_user` instead of `mysql.default_user`)
-- If no host, username, password parameter is provided when using the `mysql_*` functions, the default values from the corresponding `mysqli.*` settings from `php.ini` file will be used (e.g. `mysqli.default_host`, `mysqli.default_user`, `mysqli.default_pw`) \ No newline at end of file
+- If no host, username, password parameter is provided when using the `mysql_*` functions, the default values from the corresponding `mysqli.*` settings from `php.ini` file will be used (e.g. `mysqli.default_host`, `mysqli.default_user`, `mysqli.default_pw`)
+
+## Alternatives
+
+Instead of using this drop-in-replacement library you should consider refactoring your code from `mysql` to e.g. `mysqli`. This process can be automated with e.g. https://github.com/rectorphp/rector/blob/master/docs/AllRectorsOverview.md#mysqltomysqli