svn: /pear/pear-core/trunk/PEAR/ RunTest.php
[email protected] (Helgi Þormar Þorbjörnsson) Sat, 04 Sep 2010 22:41:41 +0000
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
dufuz Sat, 04 Sep 2010 22:41:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303039
Log:
Bug #17801 PEAR run-tests wrongly detects php-cgi [patch by izi]
Bug: http://pear.php.net/bugs/17801 (unknown)
Changed paths:
U pear/pear-core/trunk/PEAR/RunTest.php
Modified: pear/pear-core/trunk/PEAR/RunTest.php
===================================================================
--- pear/pear-core/trunk/PEAR/RunTest.php 2010-09-04 21:20:59 UTC (rev 303038)
+++ pear/pear-core/trunk/PEAR/RunTest.php 2010-09-04 22:41:41 UTC (rev 303039)
@@ -282,7 +282,7 @@
if (empty($this->_options['cgi'])) {
// try to see if php-cgi is in the path
$res = $this->system_with_timeout('php-cgi -v');
- if (false !== $res && !(is_array($res) && $res === array(127, ''))) {
+ if (false !== $res && !(is_array($res) && in_array($res[0], array(-1, 127)))) {
$this->_options['cgi'] = 'php-cgi';
}
}