Re: testing of PEAR 1.7.0 / bug found

From: Date: Sat, 24 Nov 2007 22:11:23 +0000
Subject: Re: testing of PEAR 1.7.0 / bug found
References: 1 2 3 4 5  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-4603@lists.php.net to get a copy of this message
Christian Weiske wrote: > Greg, > > >>> What I find very interesting is, that most of the failing tests pass >>> when I run them standalone. >> All tests in PEAR_RunTest/ fail and make the rest of the tests fail as >> well, except test_bug9971.phpt. > > I found the problem's source: I do not have php-cgi installed. > When PEAR_RunTests firstly encounters a GET/POST/UPLOAD/whatever > header, it switches $this->_php to cgi. It never switches back! See > line 318. > > Further, it switches to cgi although php-cgi does not exist - you test > it with >> if (false !== $this->system_with_timeout('php-cgi -v')) { > but that does not return false - even if php-cgi does not exist. > Instead of false, the following array is returned: >> array(2) { >> [0]=> >> int(127) >> [1]=> >> string(0) "" >> } > > This is the evil's root. What freaky OS is this on? proc_open() is not returning false on trying to run a non-existent file?? :) Greg

« previous php.pear.qa (#4603) next »