24#define pgsql_module_ptr &pgsql_module_entry
27#define PHP_PGSQL_VERSION PHP_VERSION
29#ifdef PHP_PGSQL_PRIVATE
30#undef SOCKET_SIZE_TYPE
33#include <libpq/libpq-fs.h>
37#define PHP_PGSQL_API __declspec(dllexport)
39#define PHP_PGSQL_API __declspec(dllimport)
42# if defined(__GNUC__) && __GNUC__ >= 4
43# define PHP_PGSQL_API __attribute__ ((visibility("default")))
56#define PGSQL_CONNECT_FORCE_NEW (1<<1)
57#define PGSQL_CONNECT_ASYNC (1<<2)
59#define PGSQL_CONV_IGNORE_DEFAULT (1<<1)
60#define PGSQL_CONV_FORCE_NULL (1<<2)
61#define PGSQL_CONV_IGNORE_NOT_NULL (1<<3)
62#define PGSQL_CONV_OPTS (PGSQL_CONV_IGNORE_DEFAULT|PGSQL_CONV_FORCE_NULL|PGSQL_CONV_IGNORE_NOT_NULL)
64#define PGSQL_DML_NO_CONV (1<<8)
65#define PGSQL_DML_EXEC (1<<9)
66#define PGSQL_DML_ASYNC (1<<10)
67#define PGSQL_DML_STRING (1<<11)
68#define PGSQL_DML_ESCAPE (1<<12)
77PHP_PGSQL_API
void php_pgsql_result2array(PGresult *
pg_result,
zval *ret_array,
long fetch_option);
89static int php_pgsql_fd_close(
php_stream *stream,
int close_handle);
90static int php_pgsql_fd_flush(
php_stream *stream);
91static int php_pgsql_fd_set_option(
php_stream *stream,
int option,
int value,
void *ptrparam);
92static int php_pgsql_fd_cast(
php_stream *stream,
int cast_as,
void **
ret);
94typedef enum _php_pgsql_data_type {
112 PG_UNIX_TIME_INTERVAL,
115 PG_TIME_WITH_TIMEZONE,
117 PG_TIMESTAMP_WITH_TIMEZONE,
138} php_pgsql_data_type;
140typedef struct pgsql_link_handle {
148typedef struct pgLofp {
154typedef struct _php_pgsql_result_handle {
159} pgsql_result_handle;
161typedef struct _php_pgsql_notice {
175 php_pgsql_fd_set_option
178#define PGSQL_MAX_REGEXES 11
195# define PGG(v) ZEND_MODULE_GLOBALS_ACCESSOR(pgsql, v)
197#if defined(ZTS) && defined(COMPILE_DL_PGSQL)
205#define pgsql_module_ptr NULL
209#define phpext_pgsql_ptr pgsql_module_ptr
count(Countable|array $value, int $mode=COUNT_NORMAL)
zend_ffi_ctype_name_buf buf
hash(string $algo, string $data, bool $binary=false, array $options=[])
pg_result(PgSql\Result $result, $row, string|int $field=UNKNOWN)
#define PHP_MSHUTDOWN_FUNCTION
#define PHP_MINIT_FUNCTION
#define PHP_MINFO_FUNCTION
#define PHP_RINIT_FUNCTION
#define PHP_RSHUTDOWN_FUNCTION
struct _php_stream php_stream
struct _php_stream_ops php_stream_ops
#define INTERNAL_FUNCTION_PARAMETERS
#define ZEND_TSRMLS_CACHE_EXTERN()
#define ZEND_END_MODULE_GLOBALS(module_name)
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
#define ZEND_BEGIN_MODULE_GLOBALS(module_name)
struct _zend_string zend_string
struct _zend_module_entry zend_module_entry
struct _zend_object zend_object
struct _zend_array HashTable
ZEND_RESULT_CODE zend_result