1999-04-22 06:49:16 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-09 01:33:29 +08:00
|
|
|
| PHP Version 5 |
|
1999-04-22 06:49:16 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2005-08-03 22:08:58 +08:00
|
|
|
| Copyright (c) 1997-2005 The PHP Group |
|
1999-04-22 06:49:16 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2003-06-11 04:04:29 +08:00
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
2000-07-24 09:40:02 +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: |
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
2000-07-24 09:40:02 +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. |
|
1999-04-22 06:49:16 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2002-02-28 16:29:35 +08:00
|
|
|
| Author: Zeev Suraski <zeev@zend.com> |
|
1999-04-22 06:49:16 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 09:40:02 +08:00
|
|
|
*/
|
1999-04-22 06:49:16 +08:00
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-03 07:46:51 +08:00
|
|
|
#ifndef PHP_MSQL_H
|
|
|
|
#define PHP_MSQL_H
|
1999-04-22 06:49:16 +08:00
|
|
|
|
|
|
|
#if HAVE_MSQL
|
|
|
|
|
1999-09-04 19:05:34 +08:00
|
|
|
extern zend_module_entry msql_module_entry;
|
1999-04-22 06:49:16 +08:00
|
|
|
#define msql_module_ptr &msql_module_entry
|
|
|
|
|
|
|
|
/* mSQL functions */
|
2001-01-26 06:07:31 +08:00
|
|
|
PHP_MINIT_FUNCTION(msql);
|
|
|
|
PHP_RINIT_FUNCTION(msql);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(msql);
|
|
|
|
PHP_MINFO_FUNCTION(msql);
|
1999-08-03 00:06:13 +08:00
|
|
|
|
2001-01-26 06:07:31 +08:00
|
|
|
PHP_FUNCTION(msql_connect);
|
|
|
|
PHP_FUNCTION(msql_pconnect);
|
|
|
|
PHP_FUNCTION(msql_close);
|
|
|
|
PHP_FUNCTION(msql_select_db);
|
|
|
|
PHP_FUNCTION(msql_create_db);
|
|
|
|
PHP_FUNCTION(msql_drop_db);
|
|
|
|
PHP_FUNCTION(msql_list_dbs);
|
|
|
|
PHP_FUNCTION(msql_list_tables);
|
|
|
|
PHP_FUNCTION(msql_list_fields);
|
|
|
|
PHP_FUNCTION(msql_error);
|
|
|
|
PHP_FUNCTION(msql_affected_rows);
|
|
|
|
PHP_FUNCTION(msql_query);
|
|
|
|
PHP_FUNCTION(msql_db_query);
|
|
|
|
PHP_FUNCTION(msql_result);
|
|
|
|
PHP_FUNCTION(msql_num_rows);
|
|
|
|
PHP_FUNCTION(msql_num_fields);
|
|
|
|
PHP_FUNCTION(msql_fetch_row);
|
|
|
|
PHP_FUNCTION(msql_data_seek);
|
|
|
|
PHP_FUNCTION(msql_fetch_field);
|
|
|
|
PHP_FUNCTION(msql_field_seek);
|
|
|
|
PHP_FUNCTION(msql_free_result);
|
|
|
|
PHP_FUNCTION(msql_field_name);
|
|
|
|
PHP_FUNCTION(msql_field_table);
|
|
|
|
PHP_FUNCTION(msql_field_len);
|
|
|
|
PHP_FUNCTION(msql_field_type);
|
|
|
|
PHP_FUNCTION(msql_field_flags);
|
|
|
|
PHP_FUNCTION(msql_fetch_array);
|
|
|
|
PHP_FUNCTION(msql_fetch_object);
|
1999-04-22 06:49:16 +08:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
long default_link;
|
|
|
|
long num_links,num_persistent;
|
|
|
|
long max_links,max_persistent;
|
|
|
|
long allow_persistent;
|
|
|
|
int le_query;
|
|
|
|
int le_link;
|
|
|
|
int le_plink;
|
1999-09-04 19:05:34 +08:00
|
|
|
} php_msql_globals;
|
1999-04-22 06:49:16 +08:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define msql_module_ptr NULL
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
1999-05-21 18:06:25 +08:00
|
|
|
#define phpext_msql_ptr msql_module_ptr
|
|
|
|
|
2000-07-03 07:46:51 +08:00
|
|
|
#endif /* PHP_MSQL_H */
|