Bug #60290 [Bgs]: Apc.php – Wrong use of var_export

From: Date: Wed, 16 Nov 2011 06:06:00 +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-165215@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:             Bogus
 Type:               Bug
 Package:            APC
 Operating System:   Irrelevant
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

What are you saying? That someone pretended to be you when they submitted this 
bug report?


Previous Comments:
------------------------------------------------------------------------
[2011-11-16 06:04:33] 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-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


Thread (4 messages)

« previous php.bugs (#165215) next »