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

Bug #11516 PEAR/RunTests.php uses undefined variable
Submitted: 2007-07-03 16:28 UTC Modified: 2007-08-10 16:22 UTC
From: cweiske Assigned: dufuz
Status: Closed Package: PEAR (version 1.6.1)
PHP Version: Irrelevant OS:
Roadmaps: 1.6.2    
Subscription  


 [2007-07-03 16:28 UTC] cweiske (Christian Weiske)
Description: ------------ On line 216, run() tries to access an undefined variable. This is a typo since 'test_count' is defined, but 'tests_count' not. Test script: --------------- if (1 < $len = strlen($this->tests_count)) {

Comments

 [2007-07-10 15:28 UTC] ashnazg (Chuck Burgess)
I'm seeing this warning also. Patch corrects the var name in the initialization line, to match the only usage of the variable in the whole class (line 216 & 218).
 [2007-08-10 16:22 UTC] dufuz (Helgi ├×ormar)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.