mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
bf5cb890b0
- Avoid declaring crypt() related salt types twice
125 lines
3.9 KiB
C
125 lines
3.9 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| PHP HTML Embedded Scripting Language Version 3.0 |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 1997,1998 PHP Development Team (See Credits file) |
|
|
+----------------------------------------------------------------------+
|
|
| This program is free software; you can redistribute it and/or modify |
|
|
| it under the terms of one of the following licenses: |
|
|
| |
|
|
| A) the GNU General Public License as published by the Free Software |
|
|
| Foundation; either version 2 of the License, or (at your option) |
|
|
| any later version. |
|
|
| |
|
|
| B) the PHP License as published by the PHP Development Team and |
|
|
| included in the distribution in the file: LICENSE |
|
|
| |
|
|
| This program is distributed in the hope that it will be useful, |
|
|
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
| GNU General Public License for more details. |
|
|
| |
|
|
| You should have received a copy of both licenses referred to here. |
|
|
| If you did not, or have any questions about PHP licensing, please |
|
|
| contact core@php.net. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Zeev Suraski <zeev@zend.com> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
#ifndef _PHP_SYBASE_CT_H
|
|
#define _PHP_SYBASE_CT_H
|
|
|
|
#if COMPILE_DL
|
|
#undef HAVE_SYBASE_CT
|
|
#define HAVE_SYBASE_CT 1
|
|
#endif
|
|
|
|
#if HAVE_SYBASE_CT
|
|
|
|
#define CTLIB_VERSION CS_VERSION_100
|
|
|
|
extern zend_module_entry sybase_module_entry;
|
|
#define sybase_module_ptr &sybase_module_entry
|
|
|
|
PHP_MINIT_FUNCTION(sybase);
|
|
PHP_MSHUTDOWN_FUNCTION(sybase);
|
|
PHP_RINIT_FUNCTION(sybase);
|
|
PHP_RSHUTDOWN_FUNCTION(sybase);
|
|
PHP_MINFO_FUNCTION(sybase);
|
|
|
|
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);
|
|
PHP_FUNCTION(sybase_result);
|
|
PHP_FUNCTION(sybase_affected_rows);
|
|
PHP_FUNCTION(sybase_field_seek);
|
|
PHP_FUNCTION(sybase_min_client_severity);
|
|
PHP_FUNCTION(sybase_min_server_severity);
|
|
PHP_FUNCTION(sybase_fetch_field);
|
|
|
|
|
|
#include <ctpublic.h>
|
|
|
|
typedef struct {
|
|
long default_link;
|
|
long num_links,num_persistent;
|
|
long max_links,max_persistent;
|
|
long allow_persistent;
|
|
char *appname;
|
|
char *hostname;
|
|
char *server_message;
|
|
int le_link,le_plink,le_result;
|
|
long min_server_severity, min_client_severity;
|
|
long cfg_min_server_severity, cfg_min_client_severity;
|
|
} php_sybase_globals;
|
|
|
|
typedef struct {
|
|
CS_CONNECTION *connection;
|
|
CS_COMMAND *cmd;
|
|
int valid;
|
|
int deadlock;
|
|
int dead;
|
|
long affected_rows;
|
|
} sybase_link;
|
|
|
|
#define SYBASE_ROWS_BLOCK 128
|
|
|
|
typedef struct {
|
|
char *name,*column_source;
|
|
int max_length, numeric;
|
|
CS_INT type;
|
|
} sybase_field;
|
|
|
|
typedef struct {
|
|
pval **data;
|
|
sybase_field *fields;
|
|
sybase_link *sybase_ptr;
|
|
int cur_row,cur_field;
|
|
int num_rows,num_fields;
|
|
} sybase_result;
|
|
|
|
|
|
#else
|
|
|
|
#define sybase_module_ptr NULL
|
|
|
|
#endif
|
|
|
|
#define phpext_sybase_ct_ptr sybase_module_ptr
|
|
|
|
#endif /* _PHP_SYBASE_CT_H */
|