PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Highlighter » Bug #2730

Notice: Undefined offset in Highlighter.php

Details

Submitted2004-11-10 14:20 UTC
Fromjoern_h at gmx dot net
Assignedblindman
StatusClosed
PackageText_Highlighter
PHP Version4.3.8
OSWindows 2000
Roadmaps(Not assigned)

Comments

[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.