2003-02-12 08:45:53 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 16:18:22 +08:00
|
|
|
| PHP Version 5 |
|
2003-02-12 08:45:53 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2010-01-03 17:23:27 +08:00
|
|
|
| Copyright (c) 1997-2010 The PHP Group |
|
2003-02-12 08:45:53 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 20:51:34 +08:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2003-02-12 08:45:53 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-11 04:04:29 +08:00
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 20:51:34 +08:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2003-02-12 08:45:53 +08:00
|
|
|
| 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 |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Author: Georg Richter <georg@php.net> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
|
|
|
|
|
|
#include "php.h"
|
|
|
|
#include "php_ini.h"
|
|
|
|
#include "ext/standard/info.h"
|
2007-10-06 05:23:56 +08:00
|
|
|
#include "php_mysqli_structs.h"
|
2003-02-12 08:45:53 +08:00
|
|
|
|
|
|
|
|
2008-10-24 22:35:40 +08:00
|
|
|
ZEND_BEGIN_ARG_INFO(second_arg_force_by_ref_rest, 1)
|
|
|
|
ZEND_ARG_PASS_INFO(0)
|
|
|
|
ZEND_END_ARG_INFO();
|
2003-08-04 01:44:39 +08:00
|
|
|
|
2008-10-24 22:35:40 +08:00
|
|
|
ZEND_BEGIN_ARG_INFO(third_arg_force_by_ref_rest, 1)
|
|
|
|
ZEND_ARG_PASS_INFO(0)
|
|
|
|
ZEND_ARG_PASS_INFO(0)
|
|
|
|
ZEND_END_ARG_INFO();
|
2003-06-29 05:27:08 +08:00
|
|
|
|
2008-10-24 22:35:40 +08:00
|
|
|
ZEND_BEGIN_ARG_INFO(all_args_force_by_ref, 1)
|
|
|
|
ZEND_END_ARG_INFO();
|
2004-03-04 02:54:20 +08:00
|
|
|
|
2009-01-12 22:04:32 +08:00
|
|
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_mysqli_poll, 0, 0, 4)
|
|
|
|
ZEND_ARG_ARRAY_INFO(1, read, 1)
|
|
|
|
ZEND_ARG_ARRAY_INFO(1, write, 1)
|
|
|
|
ZEND_ARG_ARRAY_INFO(1, error, 1)
|
|
|
|
ZEND_ARG_INFO(0, sec)
|
|
|
|
ZEND_ARG_INFO(0, usec)
|
|
|
|
ZEND_END_ARG_INFO();
|
2004-03-04 02:54:20 +08:00
|
|
|
|
2003-02-12 08:45:53 +08:00
|
|
|
/* {{{ mysqli_functions[]
|
|
|
|
*
|
|
|
|
* Every user visible function must have an entry in mysqli_functions[].
|
|
|
|
*/
|
2007-09-28 02:00:48 +08:00
|
|
|
const zend_function_entry mysqli_functions[] = {
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_affected_rows, NULL)
|
|
|
|
PHP_FE(mysqli_autocommit, NULL)
|
|
|
|
PHP_FE(mysqli_change_user, NULL)
|
|
|
|
PHP_FE(mysqli_character_set_name, NULL)
|
|
|
|
PHP_FE(mysqli_close, NULL)
|
|
|
|
PHP_FE(mysqli_commit, NULL)
|
|
|
|
PHP_FE(mysqli_connect, NULL)
|
2003-07-18 14:17:39 +08:00
|
|
|
PHP_FE(mysqli_connect_errno, NULL)
|
|
|
|
PHP_FE(mysqli_connect_error, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_data_seek, NULL)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FE(mysqli_dump_debug_info, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_debug, NULL)
|
2007-10-06 05:23:56 +08:00
|
|
|
#if defined(HAVE_EMBEDDED_MYSQLI)
|
2005-01-07 22:59:59 +08:00
|
|
|
PHP_FE(mysqli_embedded_server_end, NULL)
|
|
|
|
PHP_FE(mysqli_embedded_server_start, NULL)
|
2007-10-06 05:23:56 +08:00
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_errno, NULL)
|
|
|
|
PHP_FE(mysqli_error, NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
PHP_FE(mysqli_stmt_execute, NULL)
|
|
|
|
PHP_FALIAS(mysqli_execute, mysqli_stmt_execute, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_fetch_field, NULL)
|
|
|
|
PHP_FE(mysqli_fetch_fields, NULL)
|
|
|
|
PHP_FE(mysqli_fetch_field_direct, NULL)
|
|
|
|
PHP_FE(mysqli_fetch_lengths, NULL)
|
2008-03-11 04:15:38 +08:00
|
|
|
#ifdef MYSQLI_USE_MYSQLND
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FE(mysqli_fetch_all, NULL)
|
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_fetch_array, NULL)
|
|
|
|
PHP_FE(mysqli_fetch_assoc, NULL)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FE(mysqli_fetch_object, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_fetch_row, NULL)
|
|
|
|
PHP_FE(mysqli_field_count, NULL)
|
|
|
|
PHP_FE(mysqli_field_seek, NULL)
|
|
|
|
PHP_FE(mysqli_field_tell, NULL)
|
|
|
|
PHP_FE(mysqli_free_result, NULL)
|
2008-03-11 04:15:38 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FE(mysqli_get_cache_stats, NULL)
|
|
|
|
PHP_FE(mysqli_get_connection_stats, NULL)
|
|
|
|
PHP_FE(mysqli_get_client_stats, NULL)
|
|
|
|
#endif
|
2005-07-13 04:38:34 +08:00
|
|
|
#ifdef HAVE_MYSQLI_GET_CHARSET
|
2005-06-03 16:49:01 +08:00
|
|
|
PHP_FE(mysqli_get_charset, NULL)
|
2005-07-13 04:38:34 +08:00
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_get_client_info, NULL)
|
2004-01-29 06:51:54 +08:00
|
|
|
PHP_FE(mysqli_get_client_version, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_get_host_info, NULL)
|
|
|
|
PHP_FE(mysqli_get_proto_info, NULL)
|
|
|
|
PHP_FE(mysqli_get_server_info, NULL)
|
2003-02-13 08:11:17 +08:00
|
|
|
PHP_FE(mysqli_get_server_version, NULL)
|
2005-06-24 22:44:45 +08:00
|
|
|
PHP_FE(mysqli_get_warnings, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_init, NULL)
|
|
|
|
PHP_FE(mysqli_info, NULL)
|
|
|
|
PHP_FE(mysqli_insert_id, NULL)
|
|
|
|
PHP_FE(mysqli_kill, NULL)
|
2008-03-11 04:15:38 +08:00
|
|
|
#if !defined(MYSQLI_USE_MYSQLND)
|
2004-06-06 02:31:56 +08:00
|
|
|
PHP_FE(mysqli_set_local_infile_default, NULL)
|
|
|
|
PHP_FE(mysqli_set_local_infile_handler, NULL)
|
2007-10-06 05:23:56 +08:00
|
|
|
#endif
|
- Added multiquery support:
mysqli_multi_query
mysqli_more_results
mysqli_next_results
- added read-only properties (and removed methods)
object mysql
affected_rows
client_flags
client_version
errno, error,
host, host_info, info
server_capabilities, server_version
sqlstate, port, protocol_version,
server_language
thread_id, user, warning_count
object result
current_field, field_count,
lengths, num_rows, type
object stmt
query, param_count, field_count,
id, errno, error, sqlstate
- added constructor
- minor fixes, prototypes
2003-11-23 05:20:07 +08:00
|
|
|
PHP_FE(mysqli_more_results, NULL)
|
2004-02-26 16:27:24 +08:00
|
|
|
PHP_FE(mysqli_multi_query, NULL)
|
- Added multiquery support:
mysqli_multi_query
mysqli_more_results
mysqli_next_results
- added read-only properties (and removed methods)
object mysql
affected_rows
client_flags
client_version
errno, error,
host, host_info, info
server_capabilities, server_version
sqlstate, port, protocol_version,
server_language
thread_id, user, warning_count
object result
current_field, field_count,
lengths, num_rows, type
object stmt
query, param_count, field_count,
id, errno, error, sqlstate
- added constructor
- minor fixes, prototypes
2003-11-23 05:20:07 +08:00
|
|
|
PHP_FE(mysqli_next_result, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_num_fields, NULL)
|
|
|
|
PHP_FE(mysqli_num_rows, NULL)
|
|
|
|
PHP_FE(mysqli_options, NULL)
|
|
|
|
PHP_FE(mysqli_ping, NULL)
|
2008-11-19 01:02:18 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
2009-01-12 22:04:32 +08:00
|
|
|
PHP_FE(mysqli_poll, arginfo_mysqli_poll)
|
2008-11-19 01:02:18 +08:00
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_prepare, NULL)
|
2003-12-13 08:28:21 +08:00
|
|
|
PHP_FE(mysqli_report, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_query, NULL)
|
|
|
|
PHP_FE(mysqli_real_connect, NULL)
|
|
|
|
PHP_FE(mysqli_real_escape_string, NULL)
|
|
|
|
PHP_FE(mysqli_real_query, NULL)
|
2008-11-19 01:02:18 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
|
|
|
PHP_FE(mysqli_reap_async_query, NULL)
|
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_rollback, NULL)
|
|
|
|
PHP_FE(mysqli_select_db, NULL)
|
2005-05-08 16:39:56 +08:00
|
|
|
#ifdef HAVE_MYSQLI_SET_CHARSET
|
2005-05-13 21:11:41 +08:00
|
|
|
PHP_FE(mysqli_set_charset, NULL)
|
2005-05-08 16:39:56 +08:00
|
|
|
#endif
|
2004-07-07 16:02:27 +08:00
|
|
|
PHP_FE(mysqli_stmt_attr_get, NULL)
|
|
|
|
PHP_FE(mysqli_stmt_attr_set, NULL)
|
|
|
|
PHP_FE(mysqli_stmt_field_count, NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
PHP_FE(mysqli_stmt_init, NULL)
|
|
|
|
PHP_FE(mysqli_stmt_prepare, NULL)
|
|
|
|
PHP_FE(mysqli_stmt_result_metadata, NULL)
|
|
|
|
PHP_FE(mysqli_stmt_send_long_data, NULL)
|
|
|
|
PHP_FE(mysqli_stmt_bind_param, third_arg_force_by_ref_rest)
|
|
|
|
PHP_FE(mysqli_stmt_bind_result, second_arg_force_by_ref_rest)
|
|
|
|
PHP_FE(mysqli_stmt_fetch, NULL)
|
2004-03-10 17:50:05 +08:00
|
|
|
PHP_FE(mysqli_stmt_free_result, NULL)
|
2008-03-11 04:15:38 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FE(mysqli_stmt_get_result, NULL)
|
|
|
|
#endif
|
2005-06-24 22:44:45 +08:00
|
|
|
PHP_FE(mysqli_stmt_get_warnings, NULL)
|
2004-06-06 02:31:56 +08:00
|
|
|
PHP_FE(mysqli_stmt_insert_id, NULL)
|
2004-03-22 04:43:44 +08:00
|
|
|
PHP_FE(mysqli_stmt_reset, NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
PHP_FE(mysqli_stmt_param_count, NULL)
|
2003-06-21 21:35:26 +08:00
|
|
|
PHP_FE(mysqli_sqlstate, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_ssl_set, NULL)
|
|
|
|
PHP_FE(mysqli_stat, NULL)
|
2003-02-16 20:03:37 +08:00
|
|
|
PHP_FE(mysqli_stmt_affected_rows, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_stmt_close, NULL)
|
2003-07-15 22:00:19 +08:00
|
|
|
PHP_FE(mysqli_stmt_data_seek, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_stmt_errno, NULL)
|
|
|
|
PHP_FE(mysqli_stmt_error, NULL)
|
2008-04-24 22:22:19 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
|
|
|
PHP_FE(mysqli_stmt_more_results, NULL)
|
|
|
|
PHP_FE(mysqli_stmt_next_result, NULL)
|
|
|
|
#endif
|
2003-06-22 16:46:39 +08:00
|
|
|
PHP_FE(mysqli_stmt_num_rows, NULL)
|
2003-06-21 21:35:26 +08:00
|
|
|
PHP_FE(mysqli_stmt_sqlstate, NULL)
|
2003-02-18 16:49:00 +08:00
|
|
|
PHP_FE(mysqli_stmt_store_result, NULL)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FE(mysqli_store_result, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FE(mysqli_thread_id, NULL)
|
|
|
|
PHP_FE(mysqli_thread_safe, NULL)
|
|
|
|
PHP_FE(mysqli_use_result, NULL)
|
|
|
|
PHP_FE(mysqli_warning_count, NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
|
2009-01-23 05:01:58 +08:00
|
|
|
PHP_FE(mysqli_refresh, NULL)
|
|
|
|
|
2004-03-09 20:01:23 +08:00
|
|
|
/* Aliases */
|
2005-12-26 17:28:38 +08:00
|
|
|
PHP_FALIAS(mysqli_bind_param, mysqli_stmt_bind_param, third_arg_force_by_ref_rest)
|
|
|
|
PHP_FALIAS(mysqli_bind_result, mysqli_stmt_bind_result, second_arg_force_by_ref_rest)
|
|
|
|
PHP_FALIAS(mysqli_client_encoding, mysqli_character_set_name, NULL)
|
|
|
|
PHP_FALIAS(mysqli_escape_string, mysqli_real_escape_string, NULL)
|
|
|
|
PHP_FALIAS(mysqli_fetch, mysqli_stmt_fetch, NULL)
|
|
|
|
PHP_FALIAS(mysqli_param_count, mysqli_stmt_param_count, NULL)
|
|
|
|
PHP_FALIAS(mysqli_get_metadata, mysqli_stmt_result_metadata, NULL)
|
|
|
|
PHP_FALIAS(mysqli_send_long_data, mysqli_stmt_send_long_data, NULL)
|
|
|
|
PHP_FALIAS(mysqli_set_opt, mysqli_options, NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
|
2003-02-12 08:45:53 +08:00
|
|
|
{NULL, NULL, NULL} /* Must be the last line in mysqli_functions[] */
|
|
|
|
};
|
|
|
|
/* }}} */
|
|
|
|
|
|
|
|
/* {{{ mysqli_link_methods[]
|
|
|
|
*
|
|
|
|
* Every user visible function must have an entry in mysqli_functions[].
|
|
|
|
*/
|
2007-09-28 02:00:48 +08:00
|
|
|
const zend_function_entry mysqli_link_methods[] = {
|
2003-03-24 15:43:28 +08:00
|
|
|
PHP_FALIAS(autocommit,mysqli_autocommit,NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(change_user,mysqli_change_user,NULL)
|
2005-10-18 18:02:36 +08:00
|
|
|
PHP_FALIAS(character_set_name, mysqli_character_set_name,NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(client_encoding, mysqli_character_set_name,NULL)
|
|
|
|
PHP_FALIAS(close,mysqli_close,NULL)
|
|
|
|
PHP_FALIAS(commit,mysqli_commit,NULL)
|
|
|
|
PHP_FALIAS(connect,mysqli_connect,NULL)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FALIAS(dump_debug_info,mysqli_dump_debug_info,NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(debug,mysqli_debug,NULL)
|
2005-07-13 04:38:34 +08:00
|
|
|
#ifdef HAVE_MYSQLI_GET_CHARSET
|
2005-06-03 16:49:01 +08:00
|
|
|
PHP_FALIAS(get_charset,mysqli_get_charset,NULL)
|
2005-07-13 04:38:34 +08:00
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(get_client_info,mysqli_get_client_info,NULL)
|
2008-03-11 04:15:38 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FALIAS(get_connection_stats,mysqli_get_connection_stats,NULL)
|
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(get_server_info,mysqli_get_server_info,NULL)
|
2005-06-24 22:44:45 +08:00
|
|
|
PHP_FALIAS(get_warnings, mysqli_get_warnings, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(init,mysqli_init,NULL)
|
|
|
|
PHP_FALIAS(kill,mysqli_kill,NULL)
|
2008-03-11 04:15:38 +08:00
|
|
|
#if !defined(MYSQLI_USE_MYSQLND)
|
2004-06-06 02:31:56 +08:00
|
|
|
PHP_FALIAS(set_local_infile_default,mysqli_set_local_infile_default,NULL)
|
|
|
|
PHP_FALIAS(set_local_infile_handler,mysqli_set_local_infile_handler,NULL)
|
2007-10-06 05:23:56 +08:00
|
|
|
#endif
|
- Added multiquery support:
mysqli_multi_query
mysqli_more_results
mysqli_next_results
- added read-only properties (and removed methods)
object mysql
affected_rows
client_flags
client_version
errno, error,
host, host_info, info
server_capabilities, server_version
sqlstate, port, protocol_version,
server_language
thread_id, user, warning_count
object result
current_field, field_count,
lengths, num_rows, type
object stmt
query, param_count, field_count,
id, errno, error, sqlstate
- added constructor
- minor fixes, prototypes
2003-11-23 05:20:07 +08:00
|
|
|
PHP_FALIAS(multi_query,mysqli_multi_query,NULL)
|
2008-03-08 22:55:52 +08:00
|
|
|
PHP_FALIAS(mysqli,mysqli_link_construct,NULL)
|
- Added multiquery support:
mysqli_multi_query
mysqli_more_results
mysqli_next_results
- added read-only properties (and removed methods)
object mysql
affected_rows
client_flags
client_version
errno, error,
host, host_info, info
server_capabilities, server_version
sqlstate, port, protocol_version,
server_language
thread_id, user, warning_count
object result
current_field, field_count,
lengths, num_rows, type
object stmt
query, param_count, field_count,
id, errno, error, sqlstate
- added constructor
- minor fixes, prototypes
2003-11-23 05:20:07 +08:00
|
|
|
PHP_FALIAS(more_results,mysqli_more_results, NULL)
|
|
|
|
PHP_FALIAS(next_result, mysqli_next_result, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(options,mysqli_options,NULL)
|
|
|
|
PHP_FALIAS(ping,mysqli_ping,NULL)
|
|
|
|
PHP_FALIAS(prepare,mysqli_prepare,NULL)
|
|
|
|
PHP_FALIAS(query,mysqli_query,NULL)
|
|
|
|
PHP_FALIAS(real_connect,mysqli_real_connect,NULL)
|
|
|
|
PHP_FALIAS(real_escape_string,mysqli_real_escape_string,NULL)
|
2008-11-19 01:02:18 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
|
|
|
PHP_FALIAS(poll,mysqli_poll,NULL)
|
|
|
|
PHP_FALIAS(reap_async_query,mysqli_reap_async_query,NULL)
|
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(escape_string, mysqli_real_escape_string,NULL)
|
|
|
|
PHP_FALIAS(real_query,mysqli_real_query,NULL)
|
|
|
|
PHP_FALIAS(rollback,mysqli_rollback,NULL)
|
|
|
|
PHP_FALIAS(select_db,mysqli_select_db,NULL)
|
2005-05-08 16:39:56 +08:00
|
|
|
#ifdef HAVE_MYSQLI_SET_CHARSET
|
2005-05-13 21:11:41 +08:00
|
|
|
PHP_FALIAS(set_charset,mysqli_set_charset,NULL)
|
2005-05-08 16:39:56 +08:00
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(set_opt, mysqli_options,NULL)
|
|
|
|
PHP_FALIAS(ssl_set,mysqli_ssl_set,NULL)
|
|
|
|
PHP_FALIAS(stat,mysqli_stat,NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
PHP_FALIAS(stmt_init,mysqli_stmt_init, NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(store_result,mysqli_store_result,NULL)
|
|
|
|
PHP_FALIAS(thread_safe,mysqli_thread_safe,NULL)
|
|
|
|
PHP_FALIAS(use_result,mysqli_use_result,NULL)
|
2009-01-23 05:01:58 +08:00
|
|
|
PHP_FALIAS(refresh,mysqli_refresh,NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
{NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
/* }}} */
|
|
|
|
|
|
|
|
/* {{{ mysqli_result_methods[]
|
|
|
|
*
|
|
|
|
* Every user visible function must have an entry in mysqli_result_functions[].
|
|
|
|
*/
|
2007-09-28 02:00:48 +08:00
|
|
|
const zend_function_entry mysqli_result_methods[] = {
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FALIAS(__construct, mysqli_result_construct, NULL)
|
2003-02-17 17:38:32 +08:00
|
|
|
PHP_FALIAS(close,mysqli_free_result,NULL)
|
2003-03-24 15:43:28 +08:00
|
|
|
PHP_FALIAS(free,mysqli_free_result,NULL)
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(data_seek,mysqli_data_seek,NULL)
|
|
|
|
PHP_FALIAS(fetch_field,mysqli_fetch_field,NULL)
|
|
|
|
PHP_FALIAS(fetch_fields,mysqli_fetch_fields,NULL)
|
2004-02-21 15:37:41 +08:00
|
|
|
PHP_FALIAS(fetch_field_direct,mysqli_fetch_field_direct,NULL)
|
2008-03-11 04:15:38 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FALIAS(fetch_all,mysqli_fetch_all,NULL)
|
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
PHP_FALIAS(fetch_array,mysqli_fetch_array,NULL)
|
|
|
|
PHP_FALIAS(fetch_assoc,mysqli_fetch_assoc,NULL)
|
|
|
|
PHP_FALIAS(fetch_object,mysqli_fetch_object,NULL)
|
|
|
|
PHP_FALIAS(fetch_row,mysqli_fetch_row,NULL)
|
|
|
|
PHP_FALIAS(field_seek,mysqli_field_seek,NULL)
|
|
|
|
PHP_FALIAS(free_result,mysqli_free_result,NULL)
|
|
|
|
{NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
/* }}} */
|
|
|
|
|
|
|
|
/* {{{ mysqli_stmt_methods[]
|
|
|
|
*
|
|
|
|
* Every user visible function must have an entry in mysqli_stmt_functions[].
|
|
|
|
*/
|
2007-09-28 02:00:48 +08:00
|
|
|
const zend_function_entry mysqli_stmt_methods[] = {
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FALIAS(__construct, mysqli_stmt_construct, NULL)
|
2004-07-07 16:02:27 +08:00
|
|
|
PHP_FALIAS(attr_get,mysqli_stmt_attr_get,NULL)
|
|
|
|
PHP_FALIAS(attr_set,mysqli_stmt_attr_set,NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
PHP_FALIAS(bind_param,mysqli_stmt_bind_param,second_arg_force_by_ref_rest)
|
|
|
|
PHP_FALIAS(bind_result,mysqli_stmt_bind_result,all_args_force_by_ref)
|
2003-02-13 05:07:28 +08:00
|
|
|
PHP_FALIAS(close,mysqli_stmt_close,NULL)
|
2003-07-15 22:00:19 +08:00
|
|
|
PHP_FALIAS(data_seek,mysqli_stmt_data_seek,NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
PHP_FALIAS(execute,mysqli_stmt_execute,NULL)
|
|
|
|
PHP_FALIAS(fetch,mysqli_stmt_fetch,NULL)
|
2005-06-24 22:44:45 +08:00
|
|
|
PHP_FALIAS(get_warnings, mysqli_stmt_get_warnings, NULL)
|
2004-03-22 04:45:57 +08:00
|
|
|
PHP_FALIAS(result_metadata, mysqli_stmt_result_metadata,NULL)
|
2008-04-24 22:22:19 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
2008-11-19 01:02:18 +08:00
|
|
|
PHP_FALIAS(more_results, mysqli_stmt_more_results,NULL)
|
|
|
|
PHP_FALIAS(next_result, mysqli_stmt_next_result,NULL)
|
2008-04-24 22:22:19 +08:00
|
|
|
#endif
|
2008-11-19 01:02:18 +08:00
|
|
|
PHP_FALIAS(num_rows, mysqli_stmt_num_rows,NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
PHP_FALIAS(send_long_data,mysqli_stmt_send_long_data,NULL)
|
2003-12-16 16:18:31 +08:00
|
|
|
PHP_FALIAS(stmt,mysqli_prepare,NULL)
|
2004-03-10 17:50:05 +08:00
|
|
|
PHP_FALIAS(free_result,mysqli_stmt_free_result,NULL)
|
2004-03-22 04:43:44 +08:00
|
|
|
PHP_FALIAS(reset,mysqli_stmt_reset,NULL)
|
2004-03-09 20:01:23 +08:00
|
|
|
PHP_FALIAS(prepare,mysqli_stmt_prepare, NULL)
|
2003-09-25 19:19:25 +08:00
|
|
|
PHP_FALIAS(store_result,mysqli_stmt_store_result,NULL)
|
2008-03-11 04:15:38 +08:00
|
|
|
#if defined(MYSQLI_USE_MYSQLND)
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_FALIAS(get_result,mysqli_stmt_get_result,NULL)
|
|
|
|
#endif
|
2003-02-12 08:45:53 +08:00
|
|
|
{NULL, NULL, NULL}
|
|
|
|
};
|
|
|
|
/* }}} */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
* vim600: noet sw=4 ts=4 fdm=marker
|
|
|
|
* vim<600: noet sw=4 ts=4
|
|
|
|
*/
|