Back to index

php5  5.3.10
mysqli_fe.c
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Authors: Georg Richter <georg@php.net>                               |
00016   |          Andrey Hristov <andrey@php.net>                             |
00017   |          Ulf Wendel <uw@php.net>                                     |
00018   +----------------------------------------------------------------------+
00019 
00020   $Id: mysqli_fe.c 321634 2012-01-01 13:15:04Z felipe $
00021 */
00022 
00023 #ifdef HAVE_CONFIG_H
00024 #include "config.h"
00025 #endif
00026 
00027 #include <signal.h>
00028 
00029 #include "php.h"
00030 #include "php_ini.h"
00031 #include "ext/standard/info.h"
00032 #include "php_mysqli_structs.h"
00033 #include "mysqli_fe.h"
00034 #include "mysqli_priv.h"
00035 
00036 #if PHP_VERSION_ID >= 50399
00037 #define MYSQLI_ZEND_ARG_OBJ_INFO_LINK() ZEND_ARG_OBJ_INFO(0, link, mysqli, 0)
00038 #define MYSQLI_ZEND_ARG_OBJ_INFO_RESULT() ZEND_ARG_OBJ_INFO(0, result, mysqli_result, 0)
00039 #define MYSQLI_ZEND_ARG_OBJ_INFO_STMT() ZEND_ARG_OBJ_INFO(0, stmt, mysqli_stmt, 0)
00040 #else
00041 #define MYSQLI_ZEND_ARG_OBJ_INFO_LINK() ZEND_ARG_INFO(0, link)
00042 #define MYSQLI_ZEND_ARG_OBJ_INFO_RESULT() ZEND_ARG_INFO(0, result)
00043 #define MYSQLI_ZEND_ARG_OBJ_INFO_STMT() ZEND_ARG_INFO(0, stmt)
00044 #endif
00045 
00046 ZEND_BEGIN_ARG_INFO(arginfo_mysqli_stmt_bind_result, 1)
00047        MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
00048 ZEND_END_ARG_INFO()
00049 
00050 ZEND_BEGIN_ARG_INFO(arginfo_mysqli_stmt_bind_param, 1)
00051        MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
00052        ZEND_ARG_INFO(0, types)
00053 ZEND_END_ARG_INFO()
00054 
00055 ZEND_BEGIN_ARG_INFO(arginfo_class_mysqli_stmt_bind_result, 1)
00056 ZEND_END_ARG_INFO()
00057 
00058 ZEND_BEGIN_ARG_INFO(arginfo_class_mysqli_stmt_bind_param, 1)
00059        ZEND_ARG_INFO(0, types)
00060 ZEND_END_ARG_INFO()
00061 
00062 ZEND_BEGIN_ARG_INFO(all_args_force_by_ref, 1)
00063 ZEND_END_ARG_INFO()
00064 
00065 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_poll, 0, 0, 4)
00066        ZEND_ARG_ARRAY_INFO(1, read, 1)
00067        ZEND_ARG_ARRAY_INFO(1, write, 1)
00068        ZEND_ARG_ARRAY_INFO(1, error, 1)
00069        ZEND_ARG_INFO(0, sec)
00070        ZEND_ARG_INFO(0, usec)
00071 ZEND_END_ARG_INFO()
00072 
00073 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_no_params, 0, 0, 0)
00074 ZEND_END_ARG_INFO()
00075 
00076 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_only_link, 0, 0, 1)
00077        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00078 ZEND_END_ARG_INFO()
00079 
00080 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_autocommit, 0, 0, 2)
00081        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00082        ZEND_ARG_INFO(0, mode)
00083 ZEND_END_ARG_INFO()
00084 
00085 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_autocommit, 0, 0, 1)
00086        ZEND_ARG_INFO(0, mode)
00087 ZEND_END_ARG_INFO()
00088 
00089 
00090 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_change_user, 0, 0, 4)
00091        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00092        ZEND_ARG_INFO(0, user)
00093        ZEND_ARG_INFO(0, password)
00094        ZEND_ARG_INFO(0, database)
00095 ZEND_END_ARG_INFO()
00096 
00097 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_change_user, 0, 0, 3)
00098        ZEND_ARG_INFO(0, user)
00099        ZEND_ARG_INFO(0, password)
00100        ZEND_ARG_INFO(0, database)
00101 ZEND_END_ARG_INFO()
00102 
00103 
00104 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_connect, 0, 0, 0)
00105        ZEND_ARG_INFO(0, host)
00106        ZEND_ARG_INFO(0, user)
00107        ZEND_ARG_INFO(0, password)
00108        ZEND_ARG_INFO(0, database)
00109        ZEND_ARG_INFO(0, port)
00110        ZEND_ARG_INFO(0, socket)
00111 ZEND_END_ARG_INFO()
00112 
00113 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_real_connect, 0, 0, 1)
00114        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00115        ZEND_ARG_INFO(0, host)
00116        ZEND_ARG_INFO(0, user)
00117        ZEND_ARG_INFO(0, password)
00118        ZEND_ARG_INFO(0, database)
00119        ZEND_ARG_INFO(0, port)
00120        ZEND_ARG_INFO(0, socket)
00121        ZEND_ARG_INFO(0, flags)
00122 ZEND_END_ARG_INFO()
00123 
00124 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_real_connect, 0, 0, 0)
00125        ZEND_ARG_INFO(0, host)
00126        ZEND_ARG_INFO(0, user)
00127        ZEND_ARG_INFO(0, password)
00128        ZEND_ARG_INFO(0, database)
00129        ZEND_ARG_INFO(0, port)
00130        ZEND_ARG_INFO(0, socket)
00131        ZEND_ARG_INFO(0, flags)
00132 ZEND_END_ARG_INFO()
00133 
00134 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_only_result, 0, 0, 1)
00135        MYSQLI_ZEND_ARG_OBJ_INFO_RESULT()
00136 ZEND_END_ARG_INFO()
00137 
00138 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_only_statement, 0, 0, 1)
00139        MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
00140 ZEND_END_ARG_INFO()
00141 
00142 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_data_seek, 0, 0, 2)
00143        MYSQLI_ZEND_ARG_OBJ_INFO_RESULT()
00144        ZEND_ARG_INFO(0, offset)
00145 ZEND_END_ARG_INFO()
00146 
00147 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_stmt_data_seek, 0, 0, 2)
00148        MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
00149        ZEND_ARG_INFO(0, offset)
00150 ZEND_END_ARG_INFO()
00151 
00152 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_data_seek, 0, 0, 1)
00153        ZEND_ARG_INFO(0, offset)
00154 ZEND_END_ARG_INFO()
00155 
00156 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_debug, 0, 0, 1)
00157        ZEND_ARG_INFO(0, debug_options)
00158 ZEND_END_ARG_INFO()
00159 
00160 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_result_and_fieldnr, 0, 0, 2)
00161        MYSQLI_ZEND_ARG_OBJ_INFO_RESULT()
00162        ZEND_ARG_INFO(0, field_nr)
00163 ZEND_END_ARG_INFO()
00164 
00165 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_result_and_fieldnr, 0, 0, 1)
00166        ZEND_ARG_INFO(0, field_nr)
00167 ZEND_END_ARG_INFO()
00168 
00169 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_fetch_array, 0, 0, 1)
00170        MYSQLI_ZEND_ARG_OBJ_INFO_RESULT()
00171        ZEND_ARG_INFO(0, result_type)
00172 ZEND_END_ARG_INFO()
00173 
00174 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_fetch_array, 0, 0, 0)
00175        ZEND_ARG_INFO(0, result_type)
00176 ZEND_END_ARG_INFO()
00177 
00178 
00179 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_fetch_object, 0, 0, 1)
00180 #if PHP_VERSION_ID > 50399
00181        MYSQLI_ZEND_ARG_OBJ_INFO_RESULT()
00182        ZEND_ARG_INFO(0, class_name)
00183        ZEND_ARG_ARRAY_INFO(0, params, 0)
00184 #endif
00185 ZEND_END_ARG_INFO()
00186 
00187 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_fetch_object, 0, 0, 0)
00188 #if PHP_VERSION_ID > 50399
00189        ZEND_ARG_INFO(0, class_name)
00190        ZEND_ARG_ARRAY_INFO(0, params, 0)
00191 #endif
00192 ZEND_END_ARG_INFO()
00193 
00194 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_kill, 0, 0, 2)
00195        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00196        ZEND_ARG_INFO(0, connection_id)
00197 ZEND_END_ARG_INFO()
00198 
00199 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_kill, 0, 0, 1)
00200        ZEND_ARG_INFO(0, connection_id)
00201 ZEND_END_ARG_INFO()
00202 
00203 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_set_local_infile_handler, 0, 0, 2)
00204        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00205        ZEND_ARG_INFO(0, read_callback)
00206 ZEND_END_ARG_INFO()
00207 
00208 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_set_local_infile_handler, 0, 0, 1)
00209        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00210        ZEND_ARG_INFO(0, read_callback)
00211 ZEND_END_ARG_INFO()
00212 
00213 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_query, 0, 0, 2)
00214        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00215        ZEND_ARG_INFO(0, query)
00216 ZEND_END_ARG_INFO()
00217 
00218 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_prepare, 0, 0, 2)
00219        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00220        ZEND_ARG_INFO(0, query)
00221 ZEND_END_ARG_INFO()
00222 
00223 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_stmt_prepare, 0, 0, 2)
00224        MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
00225        ZEND_ARG_INFO(0, query)
00226 ZEND_END_ARG_INFO()
00227 
00228 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_query, 0, 0, 1)
00229        ZEND_ARG_INFO(0, query)
00230 ZEND_END_ARG_INFO()
00231 
00232 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_options, 0, 0, 3)
00233        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00234        ZEND_ARG_INFO(0, option)
00235        ZEND_ARG_INFO(0, value)
00236 ZEND_END_ARG_INFO()
00237 
00238 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_options, 0, 0, 2)
00239        ZEND_ARG_INFO(0, option)
00240        ZEND_ARG_INFO(0, value)
00241 ZEND_END_ARG_INFO()
00242 
00243 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_report, 0, 0, 1)
00244        ZEND_ARG_INFO(0, flags)
00245 ZEND_END_ARG_INFO()
00246 
00247 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_real_escape_string, 0, 0, 2)
00248        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00249        ZEND_ARG_INFO(0, string_to_escape)
00250 ZEND_END_ARG_INFO()
00251 
00252 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_real_escape_string, 0, 0, 1)
00253        ZEND_ARG_INFO(0, string_to_escape)
00254 ZEND_END_ARG_INFO()
00255 
00256 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_select_db, 0, 0, 2)
00257        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00258        ZEND_ARG_INFO(0, database)
00259 ZEND_END_ARG_INFO()
00260 
00261 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_select_db, 0, 0, 1)
00262        ZEND_ARG_INFO(0, database)
00263 ZEND_END_ARG_INFO()
00264 
00265 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_set_charset, 0, 0, 2)
00266        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00267        ZEND_ARG_INFO(0, charset)
00268 ZEND_END_ARG_INFO()
00269 
00270 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_set_charset, 0, 0, 1)
00271        ZEND_ARG_INFO(0, charset)
00272 ZEND_END_ARG_INFO()
00273 
00274 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_stmt_attr_get, 0, 0, 2)
00275        MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
00276        ZEND_ARG_INFO(0, attribute)
00277 ZEND_END_ARG_INFO()
00278 
00279 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_stmt_attr_get, 0, 0, 1)
00280        ZEND_ARG_INFO(0, attribute)
00281 ZEND_END_ARG_INFO()
00282 
00283 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_stmt_attr_set, 0, 0, 3)
00284        MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
00285        ZEND_ARG_INFO(0, attribute)
00286        ZEND_ARG_INFO(0, value)
00287 ZEND_END_ARG_INFO()
00288 
00289 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_stmt_attr_set, 0, 0, 2)
00290        ZEND_ARG_INFO(0, attribute)
00291        ZEND_ARG_INFO(0, value)
00292 ZEND_END_ARG_INFO()
00293 
00294 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_stmt_send_long_data, 0, 0, 3)
00295        MYSQLI_ZEND_ARG_OBJ_INFO_STMT()
00296        ZEND_ARG_INFO(0, param_nr)
00297        ZEND_ARG_INFO(0, data)
00298 ZEND_END_ARG_INFO()
00299 
00300 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_stmt_send_long_data, 0, 0, 2)
00301        ZEND_ARG_INFO(0, param_nr)
00302        ZEND_ARG_INFO(0, data)
00303 ZEND_END_ARG_INFO()
00304 
00305 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_ssl_set, 0, 0, 6)
00306        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00307        ZEND_ARG_INFO(0, key)
00308        ZEND_ARG_INFO(0, cert)
00309        ZEND_ARG_INFO(0, certificate_authority)
00310        ZEND_ARG_INFO(0, certificate_authority_path)
00311        ZEND_ARG_INFO(0, cipher)
00312 ZEND_END_ARG_INFO()
00313 
00314 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_ssl_set, 0, 0, 5)
00315        ZEND_ARG_INFO(0, key)
00316        ZEND_ARG_INFO(0, cert)
00317        ZEND_ARG_INFO(0, certificate_authority)
00318        ZEND_ARG_INFO(0, certificate_authority_path)
00319        ZEND_ARG_INFO(0, cipher)
00320 ZEND_END_ARG_INFO()
00321 
00322 ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_refresh, 0, 0, 2)
00323        MYSQLI_ZEND_ARG_OBJ_INFO_LINK()
00324        ZEND_ARG_INFO(0, options)
00325 ZEND_END_ARG_INFO()
00326 
00327 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_mysqli_refresh, 0, 0, 1)
00328        ZEND_ARG_INFO(0, options)
00329 ZEND_END_ARG_INFO()
00330 
00331 
00332 /* {{{ mysqli_functions[]
00333  *
00334  * Every user visible function must have an entry in mysqli_functions[].
00335  */
00336 const zend_function_entry mysqli_functions[] = {
00337        PHP_FE(mysqli_affected_rows,                                          arginfo_mysqli_only_link)
00338        PHP_FE(mysqli_autocommit,                                             arginfo_mysqli_autocommit)
00339        PHP_FE(mysqli_change_user,                                            arginfo_mysqli_change_user)
00340        PHP_FE(mysqli_character_set_name,                              arginfo_mysqli_only_link)
00341        PHP_FE(mysqli_close,                                                  arginfo_mysqli_only_link)
00342        PHP_FE(mysqli_commit,                                                        arginfo_mysqli_only_link)
00343        PHP_FE(mysqli_connect,                                                       arginfo_mysqli_connect)
00344        PHP_FE(mysqli_connect_errno,                                          arginfo_mysqli_no_params)
00345        PHP_FE(mysqli_connect_error,                                          arginfo_mysqli_no_params)
00346        PHP_FE(mysqli_data_seek,                                              arginfo_mysqli_data_seek)
00347        PHP_FE(mysqli_dump_debug_info,                                        arginfo_mysqli_only_link)
00348        PHP_FE(mysqli_debug,                                                  arginfo_mysqli_debug)
00349 #if defined(HAVE_EMBEDDED_MYSQLI)
00350        PHP_FE(mysqli_embedded_server_end,                             NULL)
00351        PHP_FE(mysqli_embedded_server_start,                           NULL)
00352 #endif
00353        PHP_FE(mysqli_errno,                                                  arginfo_mysqli_only_link)
00354        PHP_FE(mysqli_error,                                                  arginfo_mysqli_only_link)
00355        PHP_FE(mysqli_stmt_execute,                                           arginfo_mysqli_only_statement)
00356        PHP_FALIAS(mysqli_execute, mysqli_stmt_execute,         arginfo_mysqli_only_statement)
00357        PHP_FE(mysqli_fetch_field,                                            arginfo_mysqli_only_result)
00358        PHP_FE(mysqli_fetch_fields,                                           arginfo_mysqli_only_result)
00359        PHP_FE(mysqli_fetch_field_direct,                              arginfo_mysqli_result_and_fieldnr)
00360        PHP_FE(mysqli_fetch_lengths,                                          arginfo_mysqli_only_result)
00361 #ifdef MYSQLI_USE_MYSQLND
00362        PHP_FE(mysqli_fetch_all,                                              arginfo_mysqli_only_result)
00363 #endif
00364        PHP_FE(mysqli_fetch_array,                                            arginfo_mysqli_fetch_array)
00365        PHP_FE(mysqli_fetch_assoc,                                            arginfo_mysqli_only_result)
00366        PHP_FE(mysqli_fetch_object,                                           arginfo_mysqli_fetch_object)
00367        PHP_FE(mysqli_fetch_row,                                              arginfo_mysqli_only_result)
00368        PHP_FE(mysqli_field_count,                                            arginfo_mysqli_only_link)
00369        PHP_FE(mysqli_field_seek,                                             arginfo_mysqli_result_and_fieldnr)
00370        PHP_FE(mysqli_field_tell,                                             arginfo_mysqli_only_result)
00371        PHP_FE(mysqli_free_result,                                            arginfo_mysqli_only_result)
00372 #if defined(MYSQLI_USE_MYSQLND)
00373        PHP_FE(mysqli_get_cache_stats,                                        arginfo_mysqli_no_params)
00374        PHP_FE(mysqli_get_connection_stats,                                   arginfo_mysqli_only_link)
00375        PHP_FE(mysqli_get_client_stats,                                       arginfo_mysqli_no_params)
00376 #endif
00377 #ifdef HAVE_MYSQLI_GET_CHARSET
00378        PHP_FE(mysqli_get_charset,                                            arginfo_mysqli_only_link)
00379 #endif
00380        PHP_FE(mysqli_get_client_info,                                        arginfo_mysqli_only_link)
00381        PHP_FE(mysqli_get_client_version,                              arginfo_mysqli_only_link)
00382        PHP_FE(mysqli_get_host_info,                                          arginfo_mysqli_only_link)
00383        PHP_FE(mysqli_get_proto_info,                                         arginfo_mysqli_only_link)
00384        PHP_FE(mysqli_get_server_info,                                        arginfo_mysqli_only_link)
00385        PHP_FE(mysqli_get_server_version,                              arginfo_mysqli_only_link)
00386        PHP_FE(mysqli_get_warnings,                                           arginfo_mysqli_only_link)
00387        PHP_FE(mysqli_init,                                                   arginfo_mysqli_no_params)
00388        PHP_FE(mysqli_info,                                                          arginfo_mysqli_only_link)
00389        PHP_FE(mysqli_insert_id,                                              arginfo_mysqli_only_link)
00390        PHP_FE(mysqli_kill,                                                          arginfo_mysqli_kill)
00391 #if !defined(MYSQLI_USE_MYSQLND)
00392        PHP_FE(mysqli_set_local_infile_default,                        arginfo_mysqli_only_link)
00393        PHP_FE(mysqli_set_local_infile_handler,                        arginfo_mysqli_set_local_infile_handler)
00394 #endif
00395        PHP_FE(mysqli_more_results,                                           arginfo_mysqli_only_link)
00396        PHP_FE(mysqli_multi_query,                                            arginfo_mysqli_query)
00397        PHP_FE(mysqli_next_result,                                            arginfo_mysqli_only_link)
00398        PHP_FE(mysqli_num_fields,                                             arginfo_mysqli_only_result)
00399        PHP_FE(mysqli_num_rows,                                                      arginfo_mysqli_only_result)
00400        PHP_FE(mysqli_options,                                                       arginfo_mysqli_options)
00401        PHP_FE(mysqli_ping,                                                          arginfo_mysqli_only_link)
00402 #if defined(MYSQLI_USE_MYSQLND)
00403        PHP_FE(mysqli_poll,                                                          arginfo_mysqli_poll)
00404 #endif
00405        PHP_FE(mysqli_prepare,                                                       arginfo_mysqli_prepare)
00406        PHP_FE(mysqli_report,                                                        arginfo_mysqli_report)
00407        PHP_FE(mysqli_query,                                                  arginfo_mysqli_query)
00408        PHP_FE(mysqli_real_connect,                                           arginfo_mysqli_real_connect)
00409        PHP_FE(mysqli_real_escape_string,                              arginfo_mysqli_real_escape_string)
00410        PHP_FE(mysqli_real_query,                                             arginfo_mysqli_query)
00411 #if defined(MYSQLI_USE_MYSQLND)
00412        PHP_FE(mysqli_reap_async_query,                                       arginfo_mysqli_only_link)
00413 #endif
00414        PHP_FE(mysqli_rollback,                                                      arginfo_mysqli_only_link)
00415        PHP_FE(mysqli_select_db,                                              arginfo_mysqli_select_db)
00416 #ifdef HAVE_MYSQLI_SET_CHARSET
00417        PHP_FE(mysqli_set_charset,                                            arginfo_mysqli_set_charset)
00418 #endif
00419        PHP_FE(mysqli_stmt_affected_rows,                              arginfo_mysqli_only_statement)
00420        PHP_FE(mysqli_stmt_attr_get,                                          arginfo_mysqli_stmt_attr_get)
00421        PHP_FE(mysqli_stmt_attr_set,                                          arginfo_mysqli_stmt_attr_set)
00422        PHP_FE(mysqli_stmt_bind_param,                                        arginfo_mysqli_stmt_bind_param)
00423        PHP_FE(mysqli_stmt_bind_result,                                       arginfo_mysqli_stmt_bind_result)
00424        PHP_FE(mysqli_stmt_close,                                             arginfo_mysqli_only_statement)
00425        PHP_FE(mysqli_stmt_data_seek,                                         arginfo_mysqli_stmt_data_seek)
00426        PHP_FE(mysqli_stmt_errno,                                             arginfo_mysqli_only_statement)
00427        PHP_FE(mysqli_stmt_error,                                             arginfo_mysqli_only_statement)
00428        PHP_FE(mysqli_stmt_fetch,                                             arginfo_mysqli_only_statement)
00429        PHP_FE(mysqli_stmt_field_count,                                       arginfo_mysqli_only_statement)
00430        PHP_FE(mysqli_stmt_free_result,                                       arginfo_mysqli_only_statement)
00431 #if defined(MYSQLI_USE_MYSQLND)
00432        PHP_FE(mysqli_stmt_get_result,                                        arginfo_mysqli_only_statement)
00433 #endif
00434        PHP_FE(mysqli_stmt_get_warnings,                               arginfo_mysqli_only_statement)
00435        PHP_FE(mysqli_stmt_init,                                              arginfo_mysqli_only_link)
00436        PHP_FE(mysqli_stmt_insert_id,                                         arginfo_mysqli_only_statement)
00437 #if defined(MYSQLI_USE_MYSQLND)
00438        PHP_FE(mysqli_stmt_more_results,                               arginfo_mysqli_only_statement)
00439        PHP_FE(mysqli_stmt_next_result,                                       arginfo_mysqli_only_statement)
00440 #endif
00441        PHP_FE(mysqli_stmt_num_rows,                                          arginfo_mysqli_only_statement)
00442        PHP_FE(mysqli_stmt_param_count,                                       arginfo_mysqli_only_statement)
00443        PHP_FE(mysqli_stmt_prepare,                                           arginfo_mysqli_stmt_prepare)
00444        PHP_FE(mysqli_stmt_reset,                                             arginfo_mysqli_only_statement)
00445        PHP_FE(mysqli_stmt_result_metadata,                                   arginfo_mysqli_only_statement)
00446        PHP_FE(mysqli_stmt_send_long_data,                             arginfo_mysqli_stmt_send_long_data)
00447        PHP_FE(mysqli_stmt_store_result,                               arginfo_mysqli_only_statement)
00448        PHP_FE(mysqli_stmt_sqlstate,                                          arginfo_mysqli_only_statement)
00449        PHP_FE(mysqli_sqlstate,                                               arginfo_mysqli_only_link)
00450        PHP_FE(mysqli_ssl_set,                                                       arginfo_mysqli_ssl_set)
00451        PHP_FE(mysqli_stat,                                                          arginfo_mysqli_only_link)
00452        PHP_FE(mysqli_store_result,                                           arginfo_mysqli_only_link)
00453        PHP_FE(mysqli_thread_id,                                              arginfo_mysqli_only_link)
00454        PHP_FE(mysqli_thread_safe,                                            arginfo_mysqli_no_params)
00455        PHP_FE(mysqli_use_result,                                             arginfo_mysqli_only_link)
00456        PHP_FE(mysqli_warning_count,                                          arginfo_mysqli_only_link)
00457 
00458        PHP_FE(mysqli_refresh,                                                       arginfo_mysqli_refresh)
00459 
00460        /* Aliases */
00461        PHP_FALIAS(mysqli_bind_param,             mysqli_stmt_bind_param,            arginfo_mysqli_stmt_bind_param)
00462        PHP_FALIAS(mysqli_bind_result,            mysqli_stmt_bind_result,    arginfo_mysqli_stmt_bind_result)
00463        PHP_FALIAS(mysqli_client_encoding, mysqli_character_set_name,  NULL)
00464        PHP_FALIAS(mysqli_escape_string,   mysqli_real_escape_string,  arginfo_mysqli_query)
00465        PHP_FALIAS(mysqli_fetch,                  mysqli_stmt_fetch,                 NULL)
00466        PHP_FALIAS(mysqli_param_count,            mysqli_stmt_param_count,    NULL)
00467        PHP_FALIAS(mysqli_get_metadata,           mysqli_stmt_result_metadata,NULL)
00468        PHP_FALIAS(mysqli_send_long_data,  mysqli_stmt_send_long_data, NULL)
00469        PHP_FALIAS(mysqli_set_opt,                mysqli_options,                           NULL)
00470 
00471        PHP_FE_END
00472 };
00473 /* }}} */
00474 
00475 /* {{{ mysqli_link_methods[]
00476  *
00477  * Every user visible function must have an entry in mysqli_functions[].
00478  */
00479 const zend_function_entry mysqli_link_methods[] = {
00480        PHP_FALIAS(autocommit, mysqli_autocommit, arginfo_class_mysqli_autocommit)
00481        PHP_FALIAS(change_user,mysqli_change_user, arginfo_class_mysqli_change_user)
00482        PHP_FALIAS(character_set_name, mysqli_character_set_name, arginfo_mysqli_no_params)
00483        PHP_FALIAS(client_encoding, mysqli_character_set_name, arginfo_mysqli_no_params) /* deprecated */
00484        PHP_FALIAS(close, mysqli_close, arginfo_mysqli_no_params)
00485        PHP_FALIAS(commit, mysqli_commit, arginfo_mysqli_no_params)
00486        PHP_FALIAS(connect, mysqli_connect, arginfo_mysqli_connect)
00487        PHP_FALIAS(dump_debug_info, mysqli_dump_debug_info, arginfo_mysqli_no_params)
00488        PHP_FALIAS(debug, mysqli_debug, arginfo_mysqli_debug)
00489 #ifdef HAVE_MYSQLI_GET_CHARSET
00490        PHP_FALIAS(get_charset, mysqli_get_charset, arginfo_mysqli_no_params)
00491 #endif
00492        PHP_FALIAS(get_client_info, mysqli_get_client_info, arginfo_mysqli_no_params)
00493 #if defined(MYSQLI_USE_MYSQLND)
00494        PHP_FALIAS(get_connection_stats, mysqli_get_connection_stats, arginfo_mysqli_no_params)
00495 #endif
00496        PHP_FALIAS(get_server_info, mysqli_get_server_info, arginfo_mysqli_no_params)
00497        PHP_FALIAS(get_warnings, mysqli_get_warnings, arginfo_mysqli_no_params)
00498        PHP_FALIAS(init,mysqli_init, arginfo_mysqli_no_params)
00499        PHP_FALIAS(kill,mysqli_kill, arginfo_class_mysqli_kill)
00500 #if !defined(MYSQLI_USE_MYSQLND)
00501        PHP_FALIAS(set_local_infile_default, mysqli_set_local_infile_default, arginfo_mysqli_no_params)
00502        PHP_FALIAS(set_local_infile_handler, mysqli_set_local_infile_handler, arginfo_class_mysqli_set_local_infile_handler)
00503 #endif
00504        PHP_FALIAS(multi_query, mysqli_multi_query, arginfo_class_mysqli_query)
00505        PHP_FALIAS(mysqli, mysqli_link_construct, arginfo_mysqli_connect)
00506        PHP_FALIAS(more_results, mysqli_more_results, arginfo_mysqli_no_params)
00507        PHP_FALIAS(next_result, mysqli_next_result, arginfo_mysqli_no_params)
00508        PHP_FALIAS(options, mysqli_options, arginfo_class_mysqli_options)
00509        PHP_FALIAS(ping, mysqli_ping, arginfo_mysqli_no_params)
00510 #if defined(MYSQLI_USE_MYSQLND)
00511        ZEND_FENTRY(poll, ZEND_FN(mysqli_poll), arginfo_mysqli_poll, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
00512 #endif
00513        PHP_FALIAS(prepare, mysqli_prepare, arginfo_class_mysqli_query)
00514        PHP_FALIAS(query, mysqli_query, arginfo_class_mysqli_query)
00515        PHP_FALIAS(real_connect, mysqli_real_connect, arginfo_class_mysqli_real_connect)
00516        PHP_FALIAS(real_escape_string, mysqli_real_escape_string, arginfo_class_mysqli_real_escape_string)
00517 #if defined(MYSQLI_USE_MYSQLND)
00518        PHP_FALIAS(reap_async_query, mysqli_reap_async_query, arginfo_mysqli_no_params)
00519 #endif
00520        PHP_FALIAS(escape_string, mysqli_real_escape_string, arginfo_class_mysqli_real_escape_string)
00521        PHP_FALIAS(real_query, mysqli_real_query, arginfo_class_mysqli_query)
00522        PHP_FALIAS(rollback,mysqli_rollback, arginfo_mysqli_no_params)
00523        PHP_FALIAS(select_db,mysqli_select_db, arginfo_class_mysqli_select_db)
00524 #ifdef HAVE_MYSQLI_SET_CHARSET
00525        PHP_FALIAS(set_charset, mysqli_set_charset, arginfo_class_mysqli_set_charset)
00526 #endif
00527        PHP_FALIAS(set_opt, mysqli_options, arginfo_class_mysqli_options)
00528        PHP_FALIAS(ssl_set, mysqli_ssl_set, arginfo_class_mysqli_ssl_set)
00529        PHP_FALIAS(stat, mysqli_stat, arginfo_mysqli_no_params)
00530        PHP_FALIAS(stmt_init, mysqli_stmt_init, arginfo_mysqli_no_params)
00531        PHP_FALIAS(store_result, mysqli_store_result, arginfo_mysqli_no_params)
00532        PHP_FALIAS(thread_safe, mysqli_thread_safe, arginfo_mysqli_no_params)
00533        PHP_FALIAS(use_result, mysqli_use_result, arginfo_mysqli_no_params)
00534        PHP_FALIAS(refresh,mysqli_refresh, arginfo_class_mysqli_refresh)
00535        {NULL, NULL, NULL}
00536 };
00537 /* }}} */
00538 
00539 /* {{{ mysqli_result_methods[]
00540  *
00541  * Every user visible function must have an entry in mysqli_result_functions[].
00542  */
00543 const zend_function_entry mysqli_result_methods[] = {
00544        PHP_FALIAS(__construct, mysqli_result_construct, NULL)
00545        PHP_FALIAS(close, mysqli_free_result, arginfo_mysqli_no_params)
00546        PHP_FALIAS(free, mysqli_free_result, arginfo_mysqli_no_params)
00547        PHP_FALIAS(data_seek, mysqli_data_seek, arginfo_class_mysqli_data_seek)
00548        PHP_FALIAS(fetch_field, mysqli_fetch_field, arginfo_mysqli_no_params)
00549        PHP_FALIAS(fetch_fields, mysqli_fetch_fields, arginfo_mysqli_no_params)
00550        PHP_FALIAS(fetch_field_direct, mysqli_fetch_field_direct, arginfo_class_mysqli_result_and_fieldnr)
00551 #if defined(MYSQLI_USE_MYSQLND)
00552        PHP_FALIAS(fetch_all, mysqli_fetch_all, arginfo_mysqli_no_params)
00553 #endif
00554        PHP_FALIAS(fetch_array, mysqli_fetch_array, arginfo_class_mysqli_fetch_array)
00555        PHP_FALIAS(fetch_assoc, mysqli_fetch_assoc, arginfo_mysqli_no_params)
00556        PHP_FALIAS(fetch_object,mysqli_fetch_object, arginfo_class_mysqli_fetch_object)
00557        PHP_FALIAS(fetch_row, mysqli_fetch_row, arginfo_mysqli_no_params)
00558        PHP_FALIAS(field_seek, mysqli_field_seek, arginfo_class_mysqli_result_and_fieldnr)
00559        PHP_FALIAS(free_result, mysqli_free_result, arginfo_mysqli_no_params)
00560        {NULL, NULL, NULL}
00561 };
00562 /* }}} */
00563 
00564 /* {{{ mysqli_stmt_methods[]
00565  *
00566  * Every user visible function must have an entry in mysqli_stmt_functions[].
00567  */
00568 const zend_function_entry mysqli_stmt_methods[] = {
00569        PHP_FALIAS(__construct, mysqli_stmt_construct, NULL)
00570        PHP_FALIAS(attr_get, mysqli_stmt_attr_get, arginfo_class_mysqli_stmt_attr_get)
00571        PHP_FALIAS(attr_set,mysqli_stmt_attr_set, arginfo_class_mysqli_stmt_attr_set)
00572        PHP_FALIAS(bind_param,mysqli_stmt_bind_param, arginfo_class_mysqli_stmt_bind_param)
00573        PHP_FALIAS(bind_result,mysqli_stmt_bind_result, arginfo_class_mysqli_stmt_bind_result)
00574        PHP_FALIAS(close, mysqli_stmt_close, arginfo_mysqli_no_params)
00575        PHP_FALIAS(data_seek, mysqli_stmt_data_seek, arginfo_class_mysqli_data_seek)
00576        PHP_FALIAS(execute, mysqli_stmt_execute, arginfo_mysqli_no_params)
00577        PHP_FALIAS(fetch, mysqli_stmt_fetch, arginfo_mysqli_no_params)
00578        PHP_FALIAS(get_warnings, mysqli_stmt_get_warnings,      arginfo_mysqli_no_params)
00579        PHP_FALIAS(result_metadata, mysqli_stmt_result_metadata, arginfo_mysqli_no_params)
00580 #if defined(MYSQLI_USE_MYSQLND)
00581        PHP_FALIAS(more_results, mysqli_stmt_more_results, arginfo_mysqli_no_params)
00582        PHP_FALIAS(next_result, mysqli_stmt_next_result, arginfo_mysqli_no_params)
00583 #endif
00584        PHP_FALIAS(num_rows, mysqli_stmt_num_rows, arginfo_mysqli_no_params)
00585        PHP_FALIAS(send_long_data, mysqli_stmt_send_long_data, arginfo_class_mysqli_stmt_send_long_data)
00586        PHP_FALIAS(free_result, mysqli_stmt_free_result, arginfo_mysqli_no_params)
00587        PHP_FALIAS(reset, mysqli_stmt_reset, arginfo_mysqli_no_params)
00588        PHP_FALIAS(prepare, mysqli_stmt_prepare, arginfo_class_mysqli_query)
00589        PHP_FALIAS(store_result, mysqli_stmt_store_result, arginfo_mysqli_no_params)
00590 #if defined(MYSQLI_USE_MYSQLND)
00591        PHP_FALIAS(get_result, mysqli_stmt_get_result, arginfo_mysqli_no_params)
00592 #endif
00593        {NULL, NULL, NULL}
00594 };
00595 /* }}} */
00596 
00597 /*
00598  * Local variables:
00599  * tab-width: 4
00600  * c-basic-offset: 4
00601  * End:
00602  * vim600: noet sw=4 ts=4 fdm=marker
00603  * vim<600: noet sw=4 ts=4
00604  */