summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pdo_pgsql/config.m422
-rw-r--r--ext/pdo_pgsql/package.xml15
-rw-r--r--ext/pdo_pgsql/pdo_pgsql.c2
3 files changed, 33 insertions, 6 deletions
diff --git a/ext/pdo_pgsql/config.m4 b/ext/pdo_pgsql/config.m4
index 33f2709206..9f356db64a 100644
--- a/ext/pdo_pgsql/config.m4
+++ b/ext/pdo_pgsql/config.m4
@@ -104,10 +104,28 @@ if test "$PHP_PDO_PGSQL" != "no"; then
PHP_ADD_INCLUDE($PGSQL_INCLUDE)
- PHP_CHECK_PDO_INCLUDES
+ ifdef([PHP_CHECK_PDO_INCLUDES],
+ [
+ PHP_CHECK_PDO_INCLUDES
+ ],[
+ AC_MSG_CHECKING([for PDO includes])
+ if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$abs_srcdir/ext
+ elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$abs_srcdir/ext
+ elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$prefix/include/php/ext
+ else
+ AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
+ fi
+ AC_MSG_RESULT($pdo_inc_path)
+ ])
PHP_NEW_EXTENSION(pdo_pgsql, pdo_pgsql.c pgsql_driver.c pgsql_statement.c, $ext_shared,,-I$pdo_inc_path $PDO_PGSQL_CFLAGS)
- PHP_ADD_EXTENSION_DEP(pdo_pgsql, pdo)
+ ifdef([PHP_ADD_EXTENSION_DEP],
+ [
+ PHP_ADD_EXTENSION_DEP(pdo_pgsql, pdo)
+ ])
fi
fi
diff --git a/ext/pdo_pgsql/package.xml b/ext/pdo_pgsql/package.xml
index d6488cb5bb..480fa5f7fb 100644
--- a/ext/pdo_pgsql/package.xml
+++ b/ext/pdo_pgsql/package.xml
@@ -16,6 +16,13 @@
<email>iliaa@php.net</email>
<role>lead</role>
</maintainer>
+ <maintainer>
+ <user>wez</user>
+ <name>Wez Alshanetsky</name>
+ <email>wez@php.net</email>
+ <role>lead</role>
+ </maintainer>
+
</maintainers>
<description>
This extension provides an PostgreSQL driver for PDO.
@@ -23,10 +30,12 @@
<license>PHP</license>
<release>
<state>beta</state>
- <version>0.2</version>
- <date>2005-02-09</date>
+ <version>0.9</version>
+ <date>2005-06-27</date>
<notes>
+ Now features native prepared statements and numerous other improvements.
+
You need to install the PDO core module before you can make use of this one.
You also require PostgreSQL client libraries installed on the machine where you intend to build and/or use it.
@@ -47,7 +56,7 @@
</filelist>
<deps>
<dep type="php" rel="ge" version="5.0.3"/>
- <dep type="ext" rel="ge" name="pdo" version="0.2"/>
+ <dep type="ext" rel="ge" name="pdo" version="0.9"/>
</deps>
</release>
</package>
diff --git a/ext/pdo_pgsql/pdo_pgsql.c b/ext/pdo_pgsql/pdo_pgsql.c
index 9e57826e0a..b581fcb224 100644
--- a/ext/pdo_pgsql/pdo_pgsql.c
+++ b/ext/pdo_pgsql/pdo_pgsql.c
@@ -61,7 +61,7 @@ zend_module_entry pdo_pgsql_module_entry = {
PHP_RINIT(pdo_pgsql),
PHP_RSHUTDOWN(pdo_pgsql),
PHP_MINFO(pdo_pgsql),
- "0.2",
+ "0.9",
STANDARD_MODULE_PROPERTIES
};
/* }}} */