diff options
| author | Andrey Hristov <andrey@php.net> | 2008-11-18 17:02:18 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2008-11-18 17:02:18 +0000 |
| commit | 825034cea5546ba9c5542abbd863338c2ec0beaf (patch) | |
| tree | 4cd04d1407bd881078d2a8b05acf49feb7a7e3cb /ext/mysqli/php_mysqli_structs.h | |
| parent | 4126370491cc42427e96ada7883fa924f0bdef34 (diff) | |
| download | php-git-825034cea5546ba9c5542abbd863338c2ec0beaf.tar.gz | |
MFH:
Asynchronous queries for mysqli, when mysqlnd is enabled.
Includes 4 tests for mysqli_poll
Diffstat (limited to 'ext/mysqli/php_mysqli_structs.h')
| -rw-r--r-- | ext/mysqli/php_mysqli_structs.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ext/mysqli/php_mysqli_structs.h b/ext/mysqli/php_mysqli_structs.h index bf79c0f77f..c98484a18c 100644 --- a/ext/mysqli/php_mysqli_structs.h +++ b/ext/mysqli/php_mysqli_structs.h @@ -97,8 +97,11 @@ typedef struct { char *hash_key; zval *li_read; php_stream *li_stream; - zend_bool persistent; unsigned int multi_query; + zend_bool persistent; +#if defined(MYSQLI_USE_MYSQLND) + int async_result_fetch_type; +#endif } MY_MYSQL; typedef struct { @@ -299,7 +302,13 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry * TSRML #define MYSQLI_STORE_RESULT 0 #define MYSQLI_USE_RESULT 1 #ifdef MYSQLI_USE_MYSQLND -#define MYSQLI_BG_STORE_RESULT 101 +#ifdef MYSQLND_THREADED +#define MYSQLI_BG_STORE_RESULT 4 +#endif +#define MYSQLI_ASYNC 8 +#else +/* libmysql */ +#define MYSQLI_ASYNC 0 #endif /* for mysqli_fetch_assoc */ @@ -433,6 +442,7 @@ PHP_FUNCTION(mysqli_num_fields); PHP_FUNCTION(mysqli_num_rows); PHP_FUNCTION(mysqli_options); PHP_FUNCTION(mysqli_ping); +PHP_FUNCTION(mysqli_poll); PHP_FUNCTION(mysqli_prepare); PHP_FUNCTION(mysqli_query); PHP_FUNCTION(mysqli_stmt_result_metadata); @@ -441,6 +451,7 @@ PHP_FUNCTION(mysqli_read_query_result); PHP_FUNCTION(mysqli_real_connect); PHP_FUNCTION(mysqli_real_query); PHP_FUNCTION(mysqli_real_escape_string); +PHP_FUNCTION(mysqli_reap_async_query); PHP_FUNCTION(mysqli_rollback); PHP_FUNCTION(mysqli_row_seek); PHP_FUNCTION(mysqli_select_db); |
