summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Maessen <info@shuto.nl>2015-09-09 09:46:28 +0200
committerSjoerd Maessen <info@shuto.nl>2015-09-09 09:46:28 +0200
commita577e8b3ed2ebec3d2b951d9acb1d78d0f700e34 (patch)
treefa07c6bb110f4a8fd44cf8ff5dbfd7855b36572c
parent0d1215066e39adf1ea0349bee0d20977d8c50978 (diff)
downloadphp-mysql-mysqli-wrapper-a577e8b3ed2ebec3d2b951d9acb1d78d0f700e34.zip
php-mysql-mysqli-wrapper-a577e8b3ed2ebec3d2b951d9acb1d78d0f700e34.tar.gz
php-mysql-mysqli-wrapper-a577e8b3ed2ebec3d2b951d9acb1d78d0f700e34.tar.bz2
Initial commit
-rw-r--r--README.md7
-rw-r--r--mysql.php2
2 files changed, 4 insertions, 5 deletions
diff --git a/README.md b/README.md
index 23304ca..838e8e5 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,7 @@
MySQL wrapper for MySQLi
========================
-This collection of MySQL functions is trying to be a drop in replacement for the native PHP MySQL extension.
+This collection of MySQL functions is trying to be a drop in replacement for the PHP MySQL extension. In PHP 5.5 the MySQL extension is deprectated and triggers errors.
+This package is trying to support legacy projects without the need of having the MySQL extension installed by using this package you are not hold back to update to new PHP versions.
-The return values of the MySQL functions are aimed to behave the same way as the native MySQL functions.
-For example the function mysql_fetch_assoc will use MySQLi method fetch_assoc but instead of returning null in case there
-are no more rows in the resultset it will return false just like the behaviour of mysql_fetch_assoc. \ No newline at end of file
+The return values of my functions are aimed to match the native MySQL functions as close as possible. \ No newline at end of file
diff --git a/mysql.php b/mysql.php
index 2d5635e..d15d9dc 100644
--- a/mysql.php
+++ b/mysql.php
@@ -258,7 +258,7 @@ if (!extension_loaded('mysql') && !function_exists('mysql_connect')) {
*/
function mysql_unbuffered_query($query, mysqli $mysqli = null)
{
- mysqli_query(getLinkIdentifier($mysqli), $query, MYSQLI_USE_RESULT);
+ return mysqli_query(getLinkIdentifier($mysqli), $query, MYSQLI_USE_RESULT);
}
/**