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 » Bug #2393

typo in example code of cache_lite_output

Details

Submitted2004-09-24 20:32 UTC
Frombrammeleman at brammeleman dot org
Assignedarnaud
StatusClosed
PackageDocumentation
PHP Version4.3.8
Roadmaps(Not assigned)

Comments

[2004-09-24 20:32 UTC] brammeleman at brammeleman dot org

Description:
------------
There is a typo in the sample code at http://pear.php.net/manual/en/package.default.cache-lite.cache-lite-output.start.php.
Line 9 of the first example misses a 'new' statement.

$cache = Cache_Lite_Output($options);
should be:
$cache = new Cache_Lite_Output($options);

Took me 15 minutes to find out... after a lazy copy-paste action ;-)