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

Bug #2730 Notice: Undefined offset in Highlighter.php
Submitted: 2004-11-10 09:20 UTC Modified: 2004-11-11 12:30 UTC
From: joern_h at gmx dot net Assigned: blindman
Status: Closed Package: Text_Highlighter
PHP Version: 4.3.8 OS: Windows 2000
Roadmaps: (Not assigned)    
Subscription  


 [2004-11-10 09:20 UTC] joern_h at gmx dot net
Description: ------------ Text_Highlighter Version 0.6.0: With error_reporting set to E_ALL I get "Notice: Undefined offset: x in Highlighter.php on line 256" with the cpp and css highlighters. Changing line 256 of Highlighter.php from if ($this->_subst[$l][$i]) { to if (!empty($this->_subst[$l][$i])) { should solve this problem.

Comments

 [2004-11-11 03:49 UTC] ademenev
Actually this is a bug in Generator.php : $_subst should always contain entries for any possible combination of $l and $i. I will make a bugfix release today
 [2004-11-11 12:30 UTC] ademenev
Fixed in 0.6.1