Back to index

php5  5.3.10
php_mysql_structs.h
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    | Author: Zeev Suraski <zeev@zend.com>                                 |
00016    |         Andrey Hristov <andrey@php.net>                              |
00017    +----------------------------------------------------------------------+
00018 */
00019 
00020 
00021 /* $Id: php_mysql_structs.h 321634 2012-01-01 13:15:04Z felipe $ */
00022 
00023 #ifndef PHP_MYSQL_STRUCTS_H
00024 #define PHP_MYSQL_STRUCTS_H
00025 
00026 #ifdef ZTS
00027 #include "TSRM.h"
00028 #endif
00029 
00030 #ifndef TRUE
00031 #define TRUE 1
00032 #endif
00033 
00034 #ifndef FALSE
00035 #define FALSE 0
00036 #endif
00037 
00038 #if defined(MYSQL_USE_MYSQLND)
00039 #include "ext/mysqlnd/mysqlnd.h"
00040 #include "mysql_mysqlnd.h"
00041 #else
00042 #include <mysql.h>
00043 #endif
00044 
00045 #ifdef PHP_MYSQL_UNIX_SOCK_ADDR
00046 #ifdef MYSQL_UNIX_ADDR
00047 #undef MYSQL_UNIX_ADDR
00048 #endif
00049 #define MYSQL_UNIX_ADDR PHP_MYSQL_UNIX_SOCK_ADDR
00050 #endif
00051 
00052 #if (MYSQL_VERSION_ID >= 40113 && MYSQL_VERSION_ID < 50000) || MYSQL_VERSION_ID >= 50007 || defined(MYSQL_USE_MYSQLND)
00053 #define MYSQL_HAS_SET_CHARSET
00054 #endif
00055 
00056 PHP_MINIT_FUNCTION(mysql);
00057 PHP_RINIT_FUNCTION(mysql);
00058 PHP_MSHUTDOWN_FUNCTION(mysql);
00059 PHP_RSHUTDOWN_FUNCTION(mysql);
00060 PHP_MINFO_FUNCTION(mysql);
00061 
00062 PHP_FUNCTION(mysql_connect);
00063 PHP_FUNCTION(mysql_pconnect);
00064 PHP_FUNCTION(mysql_close);
00065 PHP_FUNCTION(mysql_select_db);
00066 #if MYSQL_VERSION_ID < 40000
00067 PHP_FUNCTION(mysql_create_db);
00068 PHP_FUNCTION(mysql_drop_db);
00069 #endif
00070 PHP_FUNCTION(mysql_query);
00071 PHP_FUNCTION(mysql_unbuffered_query);
00072 PHP_FUNCTION(mysql_db_query);
00073 PHP_FUNCTION(mysql_list_dbs);
00074 PHP_FUNCTION(mysql_list_tables);
00075 PHP_FUNCTION(mysql_list_fields);
00076 PHP_FUNCTION(mysql_list_processes);
00077 PHP_FUNCTION(mysql_error);
00078 PHP_FUNCTION(mysql_errno);
00079 PHP_FUNCTION(mysql_affected_rows);
00080 PHP_FUNCTION(mysql_insert_id);
00081 PHP_FUNCTION(mysql_result);
00082 PHP_FUNCTION(mysql_num_rows);
00083 PHP_FUNCTION(mysql_num_fields);
00084 PHP_FUNCTION(mysql_fetch_row);
00085 PHP_FUNCTION(mysql_fetch_array);
00086 PHP_FUNCTION(mysql_fetch_assoc);
00087 PHP_FUNCTION(mysql_fetch_object);
00088 PHP_FUNCTION(mysql_data_seek);
00089 PHP_FUNCTION(mysql_fetch_lengths);
00090 PHP_FUNCTION(mysql_fetch_field);
00091 PHP_FUNCTION(mysql_field_seek);
00092 PHP_FUNCTION(mysql_free_result);
00093 PHP_FUNCTION(mysql_field_name);
00094 PHP_FUNCTION(mysql_field_table);
00095 PHP_FUNCTION(mysql_field_len);
00096 PHP_FUNCTION(mysql_field_type);
00097 PHP_FUNCTION(mysql_field_flags);
00098 PHP_FUNCTION(mysql_escape_string);
00099 PHP_FUNCTION(mysql_real_escape_string);
00100 PHP_FUNCTION(mysql_get_client_info);
00101 PHP_FUNCTION(mysql_get_host_info);
00102 PHP_FUNCTION(mysql_get_proto_info);
00103 PHP_FUNCTION(mysql_get_server_info);
00104 PHP_FUNCTION(mysql_info);
00105 PHP_FUNCTION(mysql_stat);
00106 PHP_FUNCTION(mysql_thread_id);
00107 PHP_FUNCTION(mysql_client_encoding);
00108 PHP_FUNCTION(mysql_ping);
00109 #ifdef MYSQL_HAS_SET_CHARSET
00110 PHP_FUNCTION(mysql_set_charset);
00111 #endif
00112 
00113 ZEND_BEGIN_MODULE_GLOBALS(mysql)
00114        long default_link;
00115        long num_links,num_persistent;
00116        long max_links,max_persistent;
00117        long allow_persistent;
00118        long default_port;
00119        char *default_host, *default_user, *default_password;
00120        char *default_socket;
00121        char *connect_error;
00122        long connect_errno;
00123        long connect_timeout;
00124        long result_allocated;
00125        long trace_mode;
00126        long allow_local_infile;
00127 ZEND_END_MODULE_GLOBALS(mysql)
00128 
00129 #ifdef ZTS
00130 # define MySG(v) TSRMG(mysql_globals_id, zend_mysql_globals *, v)
00131 #else
00132 # define MySG(v) (mysql_globals.v)
00133 #endif
00134 
00135 
00136 #endif /* PHP_MYSQL_STRUCTS_H */