php.net |  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
 [2011-03-19 17:54 UTC] bwalton at artsci dot utoronto dot ca
Description:
------------
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.



Patches

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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-21 04:49 UTC] aharvey@php.net
-Status: Open +Status: Feedback -Package: *Configuration Issues +Package: PostgreSQL related
 [2011-03-21 04:49 UTC] aharvey@php.net
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.

Thanks
-Ben
 [2011-03-22 09:45 UTC] aharvey@php.net
-Status: Feedback +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2011-03-22 10:12 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=309545
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] aharvey@php.net
-Status: Assigned +Status: Closed -Type: Feature/Change Request +Type: Bug
 [2011-03-22 10:12 UTC] aharvey@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Thanks for the patch, Ben!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC