X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pq_params.c;h=6739b459b00876d445f65fe3981b3735435632bf;hp=5a5156ff32d85b758498e3459edc2369cffdcde0;hb=25e7c9331c023ef1ca869b2f1c8433251bc8f359;hpb=ef9b34bc5ae76a1a961108085e5d21e8ad679b18 diff --git a/src/php_pq_params.c b/src/php_pq_params.c index 5a5156f..6739b45 100644 --- a/src/php_pq_params.c +++ b/src/php_pq_params.c @@ -75,7 +75,9 @@ unsigned php_pq_params_add_type_oid(php_pq_params_t *p, Oid type) static zend_string *object_param_to_string(php_pq_params_t *p, zval *zobj, Oid type) { +#if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON) smart_str str = {0}; +#endif switch (type) { #if PHP_PQ_HAVE_PHP_JSON_H && defined(PHP_PQ_OID_JSON)