]> granicus.if.org Git - php/commitdiff
Fix bug #54318 (Non-portable grep option used in PDO pgsql configuration).
authorAdam Harvey <aharvey@php.net>
Tue, 22 Mar 2011 09:12:01 +0000 (09:12 +0000)
committerAdam Harvey <aharvey@php.net>
Tue, 22 Mar 2011 09:12:01 +0000 (09:12 +0000)
Patch by Ben Walton <bwalton at artsci dot utoronto dot ca>.

NEWS
ext/pdo_pgsql/config.m4

diff --git a/NEWS b/NEWS
index 4ff165a6b050342c954c1b1d0de41ac1a00c4466..62048792702c1dab8ed315aee30abf9f7497bed2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,10 @@ PHP                                                                        NEWS
   . Fixed bug #54167 (PDO_DBLIB returns null on SQLUNIQUE field).
     (mjh at hodginsmedia dot com, Felipe)
 
+- PDO PostgreSQL driver:
+  . Fixed bug #54318 (Non-portable grep option used in PDO pgsql
+    configuration). (bwalton at artsci dot utoronto dot ca)
+
 - SOAP extension:
   . Fixed bug #54312 (soap_version logic bug). (tom at samplonius dot org)
 
index 4a118ca810ee21626b54ff33cb98ed50228b62f0..95d59a1b4a3bb1feed42410fb871cd8bdd5248c8 100644 (file)
@@ -69,7 +69,8 @@ if test "$PHP_PDO_PGSQL" != "no"; then
   AC_DEFINE(HAVE_PDO_PGSQL,1,[Whether to build PostgreSQL for PDO support or not])
 
   AC_MSG_CHECKING([for openssl dependencies])
-  if grep -q openssl $PGSQL_INCLUDE/libpq-fe.h ; then
+  grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1
+  if test $? -eq 0 ; then
     AC_MSG_RESULT([yes])
     dnl First try to find pkg-config
     AC_PATH_PROG(PKG_CONFIG, pkg-config, no)