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

Bug #6231 Undefined property _defClass notice in HTML renderer
Submitted: 2005-12-12 11:26 UTC Modified: 2006-02-03 18:34 UTC
From: mjohnson at pitsco dot com Assigned: blindman
Status: Closed Package: Text_Highlighter
PHP Version: 4.3.10 OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-12-12 11:26 UTC] mjohnson at pitsco dot com
Description: ------------ The HTML renderer issues "Notice: Undefined property: _defClass in /usr/share/php/Text/Highlighter/Renderer/Html.php on line 125" when error reporting allows notices. I'm using version 0.6.6 beta of Text_Highlighter. Test script: --------------- Unified diff: --- /usr/share/php/Text/Highlighter/Renderer/Html.php 2005-11-14 17:00:32.000000000 -0600 +++ Html.php 2005-12-12 10:22:30.197113278 -0600 @@ -122,7 +122,7 @@ function reset() { $this->_output = ''; - $this->_lastClass = $this->_defClass; + $this->_lastClass = @$this->_defClass; if (isset($this->_options['numbers'])) { $this->_numbers = (int)$this->_options['numbers']; if ($this->_numbers != HL_NUMBERS_LI && $this->_numbers != HL_NUMBERS_TABLE) {

Comments

 [2006-02-03 18:34 UTC] blindman at php dot net
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Text_Highlighter