mirror of
https://github.com/danog/ext-pq.git
synced 2024-11-30 04:19:49 +01:00
get rid of remaining HAVE_JSON, use PHP_PQ_HAVE_PHP_JSON_H everywhere
This commit is contained in:
parent
e34b30c4a4
commit
ab8bb315a8
@ -88,7 +88,7 @@ static zval *object_param_to_string(php_pq_params_t *p, zval *zobj, Oid type TSR
|
||||
smart_str str = {0};
|
||||
|
||||
switch (type) {
|
||||
#if HAVE_JSON && defined(PHP_PQ_OID_JSON)
|
||||
#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON)
|
||||
# ifdef PHP_PQ_OID_JSONB
|
||||
case PHP_PQ_OID_JSONB:
|
||||
# endif
|
||||
@ -227,7 +227,7 @@ static zval *array_param_to_string(php_pq_params_t *p, zval *zarr, Oid type TSRM
|
||||
struct apply_to_param_from_array_arg arg = {NULL};
|
||||
|
||||
switch (type) {
|
||||
#if HAVE_JSON && defined(PHP_PQ_OID_JSON)
|
||||
#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON)
|
||||
# ifdef PHP_PQ_OID_JSONB
|
||||
case PHP_PQ_OID_JSONB:
|
||||
# endif
|
||||
|
@ -176,7 +176,7 @@ zval *php_pqres_typed_zval(php_pqres_t *res, char *val, size_t len, Oid typ TSRM
|
||||
php_pqdt_from_string(val, len, "Y-m-d H:i:s.uO", zv TSRMLS_CC);
|
||||
break;
|
||||
|
||||
#if HAVE_JSON && defined(PHP_PQ_OID_JSON)
|
||||
#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON)
|
||||
# ifdef PHP_PQ_OID_JSONB
|
||||
case PHP_PQ_OID_JSONB:
|
||||
# endif
|
||||
@ -1225,7 +1225,7 @@ PHP_MINIT_FUNCTION(pqres)
|
||||
zend_declare_class_constant_long(php_pqres_class_entry, ZEND_STRL("CONV_SCALAR"), PHP_PQRES_CONV_SCALAR TSRMLS_CC);
|
||||
zend_declare_class_constant_long(php_pqres_class_entry, ZEND_STRL("CONV_ARRAY"), PHP_PQRES_CONV_ARRAY TSRMLS_CC);
|
||||
zend_declare_class_constant_long(php_pqres_class_entry, ZEND_STRL("CONV_DATETIME"), PHP_PQRES_CONV_DATETIME TSRMLS_CC);
|
||||
#if HAVE_JSON
|
||||
#if PHP_PQ_HAVE_PHP_JSON_H
|
||||
zend_declare_class_constant_long(php_pqres_class_entry, ZEND_STRL("CONV_JSON"), PHP_PQRES_CONV_JSON TSRMLS_CC);
|
||||
#endif
|
||||
zend_declare_class_constant_long(php_pqres_class_entry, ZEND_STRL("CONV_ALL"), PHP_PQRES_CONV_ALL TSRMLS_CC);
|
||||
|
Loading…
Reference in New Issue
Block a user