Bug #60290 [Bgs]: Apc.php â Wrong use of var_export
| From: | klaus-martin dot hansche at kvberlin dot de | Date: | Wed, 16 Nov 2011 06:04:33 +0000 |
| Subject: | Bug #60290 [Bgs]: Apc.php â Wrong use of var_export | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165214@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
User updated by: klaus-martin dot hansche at kvberlin dot de
Reported by: klaus-martin dot hansche at kvberlin dot de
Summary: Apc.php â Wrong use of var_export
Status: Bogus
Type: Bug
Package: APC
Operating System: Irrelevant
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Please, remove this "report" and my mail-address immediately. And think about not
publishing unconfirmed addresses anymore.
Previous Comments:
------------------------------------------------------------------------
[2011-11-15 20:46:36] rasmus@php.net
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
------------------------------------------------------------------------
[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