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

Bug #2730 Notice: Undefined offset in Highlighter.php
Submitted: 2004-11-10 14:20 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 14: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 08: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 17:30 UTC] ademenev
Fixed in 0.6.1