-L$PQ_DIR/$PHP_LIBDIR
])
PHP_CHECK_LIBRARY(pq, PQlibVersion, [AC_DEFINE(HAVE_PQLIBVERSION, 1, Have PQlibVersion)])
+ PHP_CHECK_LIBRARY(pq, PQconninfo, [AC_DEFINE(HAVE_PQCONNINFO, 1, Have PQconninfo)])
PQ_SRC="\
src/php_pq_module.c\
</lead>
<date>2014-10-15</date>
<version>
- <release>0.5.0</release>
+ <release>0.5.1</release>
<api>0.5.0</api>
</version>
<stability>
</stability>
<license>BSD, revised</license>
<notes><![CDATA[
-+ Published documentation at http://devel-m6w6.rhcloud.com/mdref/pq
-+ Added pq\Connection::$params
-+ Added pq\Connection::declare(), pq\Connection::declareAsync() and pq\Cursor
-+ Added pq\Connection::unlisten() and pq\Connection::off()
-+ Added pq\Connection::$defaultFetchType, pq\Connection::$defaultTransactionIsolation,
- pq\Connection::$defaultTransactionReadonly and pq\Connection::$defaultTransactionDeferrable
-+ Added pq\Connection::$defaultAutoConvert and pq\Result::$autoConvert
-+ Added pq\Result::CONV_BOOL, pq\Result::CONV_INT, pq\Result::CONV_FLOAT, pq\Result::CONV_SCALAR,
- pq\Result::CONV_ARRAY, pq\Result::CONV_DATETIME, pq\Result::CONV_JSON and pq\Result::CONV_ALL
-+ Always declare pq\Types OID constants
-+ Added pq\Result::fetchAllCols()
-- Reverse arguments of pq\Result::fetchCol()
-- Attempt to access properties of objects that have not been initialized by its constructor will throw E_RECOVERABLE_ERROR
-- Renamed pq\ConverterInterface to pq\Converter
-- Added second argument "$type" to pq\Converter::convertFromString() and pq\Converter::convertToString()
-* Fixed wakeup of persistent connections to ping the server with an empty query and eventually reset the connection
-* Fixed possible invalid free and leak
-* Fixed a possible crash
++ Fixed build with PostgreSQL <= 9.2
]]></notes>
<contents>
<dir name="/">
}
}
+#if HAVE_PQCONNINFO
static void php_pqconn_object_read_params(zval *object, void *o, zval *return_value TSRMLS_DC)
{
php_pqconn_object_t *obj = o;
PQconninfoFree(params);
}
}
+#endif
static void php_pqconn_object_read_options(zval *object, void *o, zval *return_value TSRMLS_DC)
{
ph.read = php_pqconn_object_read_port;
zend_hash_add(&php_pqconn_object_prophandlers, "port", sizeof("port"), (void *) &ph, sizeof(ph), NULL);
+#if HAVE_PQCONNINFO
zend_declare_property_null(php_pqconn_class_entry, ZEND_STRL("params"), ZEND_ACC_PUBLIC TSRMLS_CC);
ph.read = php_pqconn_object_read_params;
zend_hash_add(&php_pqconn_object_prophandlers, "params", sizeof("params"), (void *) &ph, sizeof(ph), NULL);
+#endif
zend_declare_property_null(php_pqconn_class_entry, ZEND_STRL("options"), ZEND_ACC_PUBLIC TSRMLS_CC);
ph.read = php_pqconn_object_read_options;