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

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


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 7 = ?

 
 [2007-07-03 21: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 20: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 21: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.