Re: testing of PEAR 1.7.0 / bug found

From: Date: Sat, 24 Nov 2007 15:22:46 +0000
Subject: Re: testing of PEAR 1.7.0 / bug found
References: 1 2 3 4  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-4595@lists.php.net to get a copy of this message
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. -- Regards/Mit freundlichen Grüßen Christian Weiske

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.qa (#4595) next »