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 #6600

Versions >= 0.6.0 fail in PHP < 4.3.3

Details

Submitted2006-01-26 20:42 UTC
Frombburton at mail dot com
Assignedblindman
StatusClosed
PackageText_Highlighter
PHP Version4.3.2
OSRedHat ES 3.0
Roadmaps(Not assigned)

Comments

[2006-01-26 20:42 UTC] bburton at mail dot com

Description:
------------
When attempting to use the latest currently available version of Text_Highlighter (0.6.6), it returns an error on line 252 relating to a mismatched number of parameters for preg_match.

It turns out that in PHP 4.3.3, an additional parameter for the starting position was added to preg_match. This additional parameter was then utilized in Text_Highlighter starting with version 0.6.0.

However, I couldn't find anything in the changelog or documentation that mentioned PHP 4.3.3 being a requirement.

Expected result:
----------------
The installer for PEAR should be fixed to require PHP 4.3.3 or later as appropriate.

After checking earlier versions of Text_Highlighter, I found version 0.5.1 is the latest that will work on PHP 4.3.2.

[2006-02-03 23:33 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