svn: /pear/pear-core/trunk/PEAR/ RunTest.php

From: Date: Sat, 04 Sep 2010 22:41:41 +0000
Subject: svn: /pear/pear-core/trunk/PEAR/ RunTest.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-60242@lists.php.net to get a copy of this message
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'; } }

« previous php.pear.cvs (#60242) next »