2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2013, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
14 #ifndef PHP_PQ_ERROR_H
15 #define PHP_PQ_ERROR_H
18 #include "php_pqres.h"
20 typedef int STATUS
; /* SUCCESS/FAILURE */
23 #if PHP_VERSION_ID >= 50700
24 # define z_is_true(z) zend_is_true(z TSRMLS_CC)
26 # define z_is_true zend_is_true
29 /* trim LF from EOL */
33 const char *strmode(long mode
);
35 /* compare array index */
36 int compare_index(const void *lptr
, const void *rptr TSRMLS_DC
);
38 #define PHP_PQerrorMessage(c) rtrim(PQerrorMessage((c)))
39 #define PHP_PQresultErrorMessage(r) rtrim(PQresultErrorMessage((r)))
41 zend_class_entry
*php_pqdt_class_entry
;
42 zval
*php_pqdt_from_string(char *datetime_str
, size_t datetime_len
, char *fmt
, zval
*zv TSRMLS_DC
);
44 zend_class_entry
*php_pqconv_class_entry
;
46 HashTable
*php_pq_parse_array(php_pqres_t
*res
, const char *val_str
, size_t val_len
, Oid typ TSRMLS_DC
);
48 PHP_MINIT_FUNCTION(pq_misc
);
57 * vim600: noet sw=4 ts=4 fdm=marker
58 * vim<600: noet sw=4 ts=4