Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #4097 Wrong logging in PEAR_Command_Test
Submitted: 2005-04-07 17:00 UTC
From: yunosh Assigned: cellog
Status: Closed Package: PEAR
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-04-07 17:00 UTC] yunosh
Description: ------------ PEAR_Command_Test::doRunTests() seems to be called statically if invoking "pear run-tests". In case of an erreanous test file I get the fatal error: Call to undefined function: log() in /usr/share/php/PEAR/Command/Test.php on line 195 This patch fixes the error: --- Test.php~ 2005-04-07 18:51:35.856457144 +0200 +++ Test.php 2005-04-07 18:55:35.860970912 +0200 @@ -192,7 +192,7 @@ $result = $run->run($t, $ini_settings); PEAR::staticPopErrorHandling(); if (PEAR::isError($result)) { - $this->log(0, $result->getMessage()); + $log->log(0, $result->getMessage()); continue; } if (OS_WINDOWS) {

Comments

 [2005-04-15 04:40 UTC] cellog
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.