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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC