1999-04-22 10:48:28 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-09 01:33:29 +08:00
|
|
|
| PHP Version 5 |
|
1999-04-22 10:48:28 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2005-08-03 22:08:58 +08:00
|
|
|
| Copyright (c) 1997-2005 The PHP Group |
|
1999-04-22 10:48:28 +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 10:48:28 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2002-02-28 16:29:35 +08:00
|
|
|
| Author: Zeev Suraski <zeev@zend.com> |
|
1999-04-22 10:48:28 +08:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 09:40:02 +08:00
|
|
|
*/
|
1999-04-22 10:48:28 +08:00
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-03 08:41:19 +08:00
|
|
|
#ifndef PHP_SYBASE_DB_H
|
|
|
|
#define PHP_SYBASE_DB_H
|
1999-04-22 10:48:28 +08:00
|
|
|
|
|
|
|
#if HAVE_SYBASE
|
|
|
|
|
1999-12-18 04:55:31 +08:00
|
|
|
extern zend_module_entry sybase_module_entry;
|
1999-04-22 10:48:28 +08:00
|
|
|
#define sybase_module_ptr &sybase_module_entry
|
|
|
|
|
1999-12-18 11:20:53 +08:00
|
|
|
PHP_MINIT_FUNCTION(sybase);
|
|
|
|
PHP_RINIT_FUNCTION(sybase);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(sybase);
|
|
|
|
PHP_RSHUTDOWN_FUNCTION(sybase);
|
|
|
|
PHP_MINFO_FUNCTION(sybase);
|
1999-05-21 18:06:25 +08:00
|
|
|
PHP_FUNCTION(sybase_connect);
|
|
|
|
PHP_FUNCTION(sybase_pconnect);
|
|
|
|
PHP_FUNCTION(sybase_close);
|
|
|
|
PHP_FUNCTION(sybase_select_db);
|
|
|
|
PHP_FUNCTION(sybase_query);
|
|
|
|
PHP_FUNCTION(sybase_free_result);
|
|
|
|
PHP_FUNCTION(sybase_get_last_message);
|
|
|
|
PHP_FUNCTION(sybase_num_rows);
|
|
|
|
PHP_FUNCTION(sybase_num_fields);
|
|
|
|
PHP_FUNCTION(sybase_fetch_row);
|
|
|
|
PHP_FUNCTION(sybase_fetch_array);
|
|
|
|
PHP_FUNCTION(sybase_fetch_object);
|
|
|
|
PHP_FUNCTION(sybase_data_seek);
|
2001-03-16 09:21:32 +08:00
|
|
|
PHP_FUNCTION(sybase_affected_rows);
|
1999-05-21 18:06:25 +08:00
|
|
|
PHP_FUNCTION(sybase_result);
|
|
|
|
PHP_FUNCTION(sybase_field_seek);
|
|
|
|
PHP_FUNCTION(sybase_min_error_severity);
|
|
|
|
PHP_FUNCTION(sybase_min_message_severity);
|
|
|
|
|
|
|
|
PHP_FUNCTION(sybase_db_query);
|
|
|
|
PHP_FUNCTION(sybase_list_fields);
|
|
|
|
PHP_FUNCTION(sybase_fetch_lengths);
|
|
|
|
PHP_FUNCTION(sybase_fetch_field);
|
|
|
|
PHP_FUNCTION(sybase_field_seek);
|
|
|
|
PHP_FUNCTION(sybase_free_result);
|
|
|
|
PHP_FUNCTION(sybase_field_name);
|
|
|
|
PHP_FUNCTION(sybase_field_table);
|
|
|
|
PHP_FUNCTION(sybase_field_len);
|
|
|
|
PHP_FUNCTION(sybase_field_type);
|
|
|
|
PHP_FUNCTION(sybase_field_flags);
|
1999-04-22 10:48:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
long default_link;
|
|
|
|
long num_links,num_persistent;
|
|
|
|
long max_links,max_persistent;
|
|
|
|
long allow_persistent;
|
|
|
|
char *appname;
|
|
|
|
char *server_message;
|
|
|
|
int le_link,le_plink,le_result;
|
|
|
|
long min_error_severity,min_message_severity;
|
|
|
|
long cfg_min_error_severity,cfg_min_message_severity;
|
|
|
|
long compatability_mode;
|
|
|
|
} sybase_module;
|
|
|
|
|
1999-12-18 11:20:53 +08:00
|
|
|
extern sybase_module php_sybase_module;
|
1999-04-22 10:48:28 +08:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define sybase_module_ptr NULL
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
1999-05-21 18:06:25 +08:00
|
|
|
#define phpext_sybase_ptr sybase_module_ptr
|
|
|
|
|
2000-07-03 08:41:19 +08:00
|
|
|
#endif /* PHP_SYBASE_DB_H */
|