|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60290 Apc.php – Wrong use of var_export
Submitted: 2011-11-14 06:57 UTC Modified: 2011-11-16 06:06 UTC
From: klaus-martin dot hansche at kvberlin dot de Assigned:
Status: Not a bug Package: APC (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: klaus-martin dot hansche at kvberlin dot de
New email:
PHP Version: OS:


 [2011-11-14 06:57 UTC] klaus-martin dot hansche at kvberlin dot de
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-15 20:46 UTC]
-Status: Open +Status: Bogus
 [2011-11-15 20:46 UTC]
var_export($var, true) is quite valid and tells var_export to return the exported 
string instead of outputting it. See
 [2011-11-16 06:04 UTC] klaus-martin dot hansche at kvberlin dot de
Please, remove this "report" and my mail-address immediately. And think about not publishing unconfirmed addresses anymore.
 [2011-11-16 06:06 UTC]
What are you saying? That someone pretended to be you when they submitted this 
bug report?
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 18:01:28 2023 UTC