Back to index

php5  5.3.10
Classes | Defines | Typedefs | Enumerations | Functions | Variables
php_ibase_includes.h File Reference
#include <ibase.h>

Go to the source code of this file.

Classes

struct  ibase_trans
struct  tr_list
struct  ibase_blob
struct  event

Defines

#define SQLDA_CURRENT_VERSION   SQLDA_VERSION1
#define METADATALENGTH   68
#define RESET_ERRMSG   do { IBG(errmsg)[0] = '\0'; IBG(sql_code) = 0; } while (0)
#define IB_STATUS   (IBG(status))
#define IBDEBUG(a)
#define LE_LINK   "Firebird/InterBase link"
#define LE_PLINK   "Firebird/InterBase persistent link"
#define LE_TRANS   "Firebird/InterBase transaction"
#define IBASE_MSGSIZE   512
#define MAX_ERRMSG   (IBASE_MSGSIZE*2)
#define IB_DEF_DATE_FMT   "%Y-%m-%d"
#define IB_DEF_TIME_FMT   "%H:%M:%S"
#define IBASE_BLOB_SEG   4096
#define IBG(v)   (ibase_globals.v)
#define BLOB_ID_LEN   18
#define BLOB_ID_MASK   "0x%" LL_MASK "x"
#define BLOB_INPUT   1
#define BLOB_OUTPUT   2
#define LL_MASK   "ll"
#define LL_LIT(lit)   lit ## ll
#define PHP_IBASE_LINK_TRANS(pzval, lh, th)
#define max(a, b)   ((a)>(b)?(a):(b))

Typedefs

typedef struct tr_list ibase_tr_list
typedef struct event ibase_event
typedef void(* info_func_t )(char *)

Enumerations

enum  php_interbase_option {
  PHP_IBASE_DEFAULT = 0, PHP_IBASE_CREATE = 0, PHP_IBASE_FETCH_BLOBS = 1, PHP_IBASE_FETCH_ARRAYS = 2,
  PHP_IBASE_UNIXTIME = 4, PHP_IBASE_WRITE = 1, PHP_IBASE_READ = 2, PHP_IBASE_CONCURRENCY = 4,
  PHP_IBASE_COMMITTED = 8, PHP_IBASE_REC_NO_VERSION = 32, PHP_IBASE_REC_VERSION = 64, PHP_IBASE_CONSISTENCY = 16,
  PHP_IBASE_WAIT = 128, PHP_IBASE_NOWAIT = 256
}

Functions

void _php_ibase_error (TSRMLS_D)
void _php_ibase_module_error (char *TSRMLS_DC,...) PHP_ATTRIBUTE_FORMAT(printf
int _php_ibase_def_trans (ibase_db_link *ib_link, ibase_trans **trans TSRMLS_DC)
void _php_ibase_get_link_trans (INTERNAL_FUNCTION_PARAMETERS, zval **link_id, ibase_db_link **ib_link, ibase_trans **trans)
void php_ibase_query_minit (INIT_FUNC_ARGS)
void php_ibase_blobs_minit (INIT_FUNC_ARGS)
int _php_ibase_string_to_quad (char const *id, ISC_QUAD *qd)
char * _php_ibase_quad_to_string (ISC_QUAD const qd)
int _php_ibase_blob_get (zval *return_value, ibase_blob *ib_blob, unsigned long max_len TSRMLS_DC)
int _php_ibase_blob_add (zval **string_arg, ibase_blob *ib_blob TSRMLS_DC)
void php_ibase_events_minit (INIT_FUNC_ARGS)
void _php_ibase_free_event (ibase_event *event TSRMLS_DC)
void php_ibase_service_minit (INIT_FUNC_ARGS)

Variables

int le_link
int le_plink
int le_trans
ISC_STATUS status [20]
long default_link
long num_links
long num_persistent
char errmsg [MAX_ERRMSG]
long sql_code
void PHP_ATTR_FMT_OFFSET

Class Documentation

struct ibase_db_link

Definition at line 73 of file php_ibase_includes.h.

Collaboration diagram for ibase_db_link:
Class Members
unsigned short dialect
struct event * event_head
isc_db_handle handle
struct tr_list * tr_list
struct ibase_trans

Definition at line 80 of file php_ibase_includes.h.

Collaboration diagram for ibase_trans:
Class Members
unsigned long affected_rows
ibase_db_link * db_link
isc_tr_handle handle
unsigned short link_cnt
struct tr_list

Definition at line 87 of file php_ibase_includes.h.

Collaboration diagram for tr_list:
Class Members
struct tr_list * next
ibase_trans * trans
struct ibase_blob

Definition at line 92 of file php_ibase_includes.h.

Class Members
isc_blob_handle bl_handle
ISC_QUAD bl_qd
unsigned short type

Define Documentation

#define BLOB_ID_LEN   18

Definition at line 138 of file php_ibase_includes.h.

#define BLOB_ID_MASK   "0x%" LL_MASK "x"

Definition at line 139 of file php_ibase_includes.h.

#define BLOB_INPUT   1

Definition at line 141 of file php_ibase_includes.h.

#define BLOB_OUTPUT   2

Definition at line 142 of file php_ibase_includes.h.

#define IB_DEF_DATE_FMT   "%Y-%m-%d"

Definition at line 57 of file php_ibase_includes.h.

#define IB_DEF_TIME_FMT   "%H:%M:%S"

Definition at line 58 of file php_ibase_includes.h.

#define IB_STATUS   (IBG(status))

Definition at line 38 of file php_ibase_includes.h.

#define IBASE_BLOB_SEG   4096

Definition at line 61 of file php_ibase_includes.h.

#define IBASE_MSGSIZE   512

Definition at line 54 of file php_ibase_includes.h.

#define IBDEBUG (   a)

Definition at line 45 of file php_ibase_includes.h.

#define IBG (   v)    (ibase_globals.v)

Definition at line 135 of file php_ibase_includes.h.

#define LE_LINK   "Firebird/InterBase link"

Definition at line 50 of file php_ibase_includes.h.

#define LE_PLINK   "Firebird/InterBase persistent link"

Definition at line 51 of file php_ibase_includes.h.

#define LE_TRANS   "Firebird/InterBase transaction"

Definition at line 52 of file php_ibase_includes.h.

#define LL_LIT (   lit)    lit ## ll

Definition at line 150 of file php_ibase_includes.h.

#define LL_MASK   "ll"

Definition at line 149 of file php_ibase_includes.h.

#define max (   a,
 
)    ((a)>(b)?(a):(b))

Definition at line 190 of file php_ibase_includes.h.

#define MAX_ERRMSG   (IBASE_MSGSIZE*2)

Definition at line 55 of file php_ibase_includes.h.

#define METADATALENGTH   68

Definition at line 33 of file php_ibase_includes.h.

#define PHP_IBASE_LINK_TRANS (   pzval,
  lh,
  th 
)
Value:
do { if (!pzval) {                                                                                                                          \
                     ZEND_FETCH_RESOURCE2(lh, ibase_db_link *, NULL, IBG(default_link),                         \
                            "InterBase link", le_link, le_plink) }                                                                   \
		else																				\
			_php_ibase_get_link_trans(INTERNAL_FUNCTION_PARAM_PASSTHRU, &pzval, &lh, &th);   \
              if (SUCCESS != _php_ibase_def_trans(lh, &th TSRMLS_CC)) { RETURN_FALSE; }                  \
       } while (0)

Definition at line 159 of file php_ibase_includes.h.

#define RESET_ERRMSG   do { IBG(errmsg)[0] = '\0'; IBG(sql_code) = 0; } while (0)

Definition at line 36 of file php_ibase_includes.h.

#define SQLDA_CURRENT_VERSION   SQLDA_VERSION1

Definition at line 29 of file php_ibase_includes.h.


Typedef Documentation

typedef struct event ibase_event
typedef struct tr_list ibase_tr_list
typedef void(* info_func_t)(char *)

Definition at line 151 of file php_ibase_includes.h.


Enumeration Type Documentation

Enumerator:
PHP_IBASE_DEFAULT 
PHP_IBASE_CREATE 
PHP_IBASE_FETCH_BLOBS 
PHP_IBASE_FETCH_ARRAYS 
PHP_IBASE_UNIXTIME 
PHP_IBASE_WRITE 
PHP_IBASE_READ 
PHP_IBASE_CONCURRENCY 
PHP_IBASE_COMMITTED 
PHP_IBASE_REC_NO_VERSION 
PHP_IBASE_REC_VERSION 
PHP_IBASE_CONSISTENCY 
PHP_IBASE_WAIT 
PHP_IBASE_NOWAIT 

Definition at line 111 of file php_ibase_includes.h.

                          {
       PHP_IBASE_DEFAULT                  = 0,
       PHP_IBASE_CREATE            = 0,
       /* fetch flags */
       PHP_IBASE_FETCH_BLOBS              = 1,
       PHP_IBASE_FETCH_ARRAYS      = 2,
       PHP_IBASE_UNIXTIME                 = 4,
       /* transaction access mode */
       PHP_IBASE_WRITE                    = 1,
       PHP_IBASE_READ                            = 2,
       /* transaction isolation level */
       PHP_IBASE_CONCURRENCY              = 4,
       PHP_IBASE_COMMITTED         = 8,
         PHP_IBASE_REC_NO_VERSION  = 32,
         PHP_IBASE_REC_VERSION     = 64,
       PHP_IBASE_CONSISTENCY              = 16,
       /* transaction lock resolution */
       PHP_IBASE_WAIT                            = 128,
       PHP_IBASE_NOWAIT                   = 256
};

Function Documentation

int _php_ibase_blob_add ( zval **  string_arg,
ibase_blob *ib_blob  TSRMLS_DC 
)
int _php_ibase_blob_get ( zval *  return_value,
ibase_blob ib_blob,
unsigned long max_len  TSRMLS_DC 
)
int _php_ibase_def_trans ( ibase_db_link ib_link,
ibase_trans **trans  TSRMLS_DC 
)
void _php_ibase_free_event ( ibase_event *event  TSRMLS_DC)
void _php_ibase_get_link_trans ( INTERNAL_FUNCTION_PARAMETERS  ,
zval **  link_id,
ibase_db_link **  ib_link,
ibase_trans **  trans 
)
void _php_ibase_module_error ( char *  TSRMLS_DC,
  ... 
)
char* _php_ibase_quad_to_string ( ISC_QUAD const  qd)
int _php_ibase_string_to_quad ( char const *  id,
ISC_QUAD *  qd 
)

Variable Documentation

Definition at line 65 of file php_ibase_includes.h.

Definition at line 67 of file php_ibase_includes.h.

long num_links

Definition at line 66 of file php_ibase_includes.h.

Definition at line 66 of file php_ibase_includes.h.

Definition at line 156 of file php_ibase_includes.h.

long sql_code

Definition at line 68 of file php_ibase_includes.h.

ISC_STATUS status[20]

Definition at line 64 of file php_ibase_includes.h.