Bug #5826 [Bgs]: Error in example code
| From: | fab@php.net | Date: | Thu, 17 Nov 2005 17:12:14 +0000 |
| Subject: | Bug #5826 [Bgs]: Error in example code | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-7174@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=5826&edit=1
ID: 5826
Updated by: fab@php.net
Reported By: tobor at robotsrule dot com
Status: Bogus
Id: 5826
Type: Bug
Package: Documentation
Operating System: n/a
PHP Version: Irrelevant
Assigned To: fab
New Comment:
There is a problem on the example : a "echo($data);" is missing before
the save() call.
But I confirm that the save() call is correct.
I'm fixing the missing "echo($data);"
thanks
Previous Comments:
------------------------------------------------------------------------
[2005-11-17 09:04:02] tobor at robotsrule dot com
When I tried to run it without the ID parameter under PHP 4.x it didn't
work. When I added the parameter it worked. That's all I can go by.
------------------------------------------------------------------------
[2005-11-17 03:59:02] fab at php dot net
Thank you for taking the time to write to us, but this is not
a bug.
the example is good
------------------------------------------------------------------------
[2005-11-17 03:58:12] fab at php dot net
the $id parameter is optionnal (if not given, Cache_Lite uses the $id
given in the get() method).
So the example is good.
------------------------------------------------------------------------
[2005-11-17 03:57:51] fab at php dot net
the $id parameter is optionnal (if not given, Cache_Lite uses the $id
given in the get() method.
------------------------------------------------------------------------
[2005-10-30 12:53:43] tobor at robotsrule dot com
Description:
------------
The documentation for the Cache_Lite::save() function is incorrect. In
the sample code box, the save() call is shown as:
$cache->save($data);
As you can see the $id parameter is missing from the save() call.
URL for the affected page is here:
http://pear.php.net/manual/en/package.caching.cache-lite.cache-lite.save.php
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=5826&edit=1