forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch ext/mysql and ext/mysqli to support mysqlnd
- Loading branch information
1 parent
9f9495a
commit 8b9b553
Showing
53 changed files
with
17,238 additions
and
1,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
+----------------------------------------------------------------------+ | ||
| PHP Version 5 | | ||
+----------------------------------------------------------------------+ | ||
| Copyright (c) 2006-2007 The PHP Group | | ||
+----------------------------------------------------------------------+ | ||
| This source file is subject to version 3.01 of the PHP license, | | ||
| that is bundled with this package in the file LICENSE, and is | | ||
| available through the world-wide-web at the following url: | | ||
| http://www.php.net/license/3_01.txt | | ||
| If you did not receive a copy of the PHP license and are unable to | | ||
| obtain it through the world-wide-web, please send a note to | | ||
| [email protected] so we can mail you a copy immediately. | | ||
+----------------------------------------------------------------------+ | ||
| Authors: Georg Richter <[email protected]> | | ||
| Andrey Hristov <[email protected]> | | ||
| Ulf Wendel <[email protected]> | | ||
+----------------------------------------------------------------------+ | ||
*/ | ||
|
||
#ifndef MYSQL_MYSQLND_H | ||
#define MYSQL_MYSQLND_H | ||
|
||
#include "ext/mysqlnd/mysqlnd_libmysql_compat.h" | ||
|
||
/* Here comes non-libmysql API to have less ifdefs in mysqli*/ | ||
#define MYSQLI_CLOSE_EXPLICIT MYSQLND_CLOSE_EXPLICIT | ||
#define MYSQLI_CLOSE_IMPLICIT MYSQLND_CLOSE_IMPLICIT | ||
#define MYSQLI_CLOSE_DISCONNECTED MYSQLND_CLOSE_DISCONNECTED | ||
|
||
#define mysqli_result_is_unbuffered(r) ((r)->unbuf) | ||
#define mysqli_server_status(c) (c)->upsert_status.server_status | ||
#define mysqli_stmt_warning_count(s) mysqlnd_stmt_warning_count((s)) | ||
#define mysqli_stmt_server_status(s) (s)->upsert_status.server_status | ||
#define mysqli_stmt_get_connection(s) (s)->conn | ||
#define mysqli_close(c, how) mysqlnd_close((c), (how)) | ||
#define mysqli_stmt_close(c, implicit) mysqlnd_stmt_close((c), (implicit)) | ||
#define mysqli_free_result(r, implicit) mysqlnd_free_result((r), (implicit)) | ||
|
||
#endif |
Oops, something went wrong.