Report new bug | New search | Development Roadmap Status: Open | Feedback | All

Bug #2393 typo in example code of cache_lite_output
Submitted: 2004-09-24 20:32 UTC
From: brammeleman at brammeleman dot org Assigned: arnaud
Status: Closed Package: Documentation
PHP Version: 4.3.8 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 11 + 22 = ?

 
 [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 ;-)

Comments

 [2004-09-28 05:47 UTC] arnaud
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.