|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54318 Non-portable grep option used in PDO pgsql configuration
Submitted: 2011-03-19 17:54 UTC Modified: 2011-03-22 10:12 UTC
From: bwalton at artsci dot utoronto dot ca Assigned: aharvey (profile)
Status: Closed Package: PostgreSQL related
PHP Version: 5.3.6 OS: Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
4 + 45 = ?
Subscribe to this entry?

 [2011-03-19 17:54 UTC] bwalton at artsci dot utoronto dot ca
The PDO/pgsql extension relies on grep -q, which isn't portable.  As per the 
autoconf recommendations, the patch supplied replaces this check with one that 
discards stdout/stderr and then tests the exit status instead.


Grep_dash_q_portability_fix (last revision 2011-03-21 13:20 UTC by bwalton at artsci dot utoronto dot ca)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-21 04:49 UTC]
-Status: Open +Status: Feedback -Package: *Configuration Issues +Package: PostgreSQL related
 [2011-03-21 04:49 UTC]
You may have forgotten to attach the patch. :)
 [2011-03-21 14:21 UTC] bwalton at artsci dot utoronto dot ca
Sorry, I got turned around in the bug tracker and thought I had properly 
submitted the patch.  I've re-attached it now.

 [2011-03-22 09:45 UTC]
-Status: Feedback +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2011-03-22 10:12 UTC]
Automatic comment from SVN on behalf of aharvey
Log: Fix bug #54318 (Non-portable grep option used in PDO pgsql configuration).
Patch by Ben Walton <bwalton at artsci dot utoronto dot ca>.
 [2011-03-22 10:12 UTC]
-Status: Assigned +Status: Closed -Type: Feature/Change Request +Type: Bug
 [2011-03-22 10:12 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Thanks for the patch, Ben!
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 17:01:26 2019 UTC