Bug #60290 [Opn->Bgs]: Apc.php â Wrong use of var_export
| From: | rasmus@php.net | Date: | Tue, 15 Nov 2011 20:46:36 +0000 |
| Subject: | Bug #60290 [Opn->Bgs]: Apc.php â Wrong use of var_export | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165190@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60290&edit=1
ID: 60290
Updated by: rasmus@php.net
Reported by: klaus-martin dot hansche at kvberlin dot de
Summary: Apc.php â Wrong use of var_export
-Status: Open
+Status: Bogus
Type: Bug
Package: APC
Operating System: Irrelevant
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
var_export($var, true) is quite valid and tells var_export to return the exported
string instead of outputting it. See http://php.net/var_export
Previous Comments:
------------------------------------------------------------------------
[2011-11-14 06:57:45] klaus-martin dot hansche at kvberlin dot de
Description:
------------
Apc.php line 1000 should be
$output = var_export(apc_fetch($entry[$fieldkey]));
instead of
$output = var_export(apc_fetch($entry[$fieldkey]),true);
The last parameter of var_export is a reference to a boolean var.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60290&edit=1