php.net |  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
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:
2 + 50 = ?
Subscribe to this entry?

 
 [2011-11-14 06:57 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-15 20:46 UTC] rasmus@php.net
-Status: Open +Status: Bogus
 [2011-11-15 20:46 UTC] 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-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] rasmus@php.net
What are you saying? That someone pretended to be you when they submitted this 
bug report?
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 16 12:03:37 2021 UTC