Created
November 16, 2012 11:45
-
-
Save Kogarasi/4086692 to your computer and use it in GitHub Desktop.
[APC Module] no reset internal array pointer in apc_fetch.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// APC : version 3.1.9 | |
$retval = apc_add('key', array(1,2,3,4,5)); | |
echo $retval; // true | |
$retval = apc_fetch('key'); | |
var_dump($retval); // array( 1,2,3,4,5 ); | |
var_dump(current($retval)); // error: false | |
reset($retval); | |
var_dump(current($retval)); // OK: 1 | |
apc_delete('key'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment