note 109488 modified in function.apc-fetch by danbrown

From: Date: Mon, 30 Jul 2012 16:09:44 +0000
Subject: note 109488 modified in function.apc-fetch by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189512@lists.php.net to get a copy of this message
I dont know is it a bug or feature but...
After apc_fetch and/or apc_store arrays loose their cursor

<?php
$array = array('foo',2,3,4,5);
var_dump(current($array)); //foo
apc_store('foo',$array);
$array2 = apc_fetch('foo');
var_dump(current($array2)); //false
?> --was-- I dont know is it a bug or feature but... After apc_fetch and/or apc_store arrays loose their cursor $array = array('foo',2,3,4,5); var_dump(current($array)); //foo apc_store('foo',$array); $array2 = apc_fetch('foo'); var_dump(current($array2)); //false http://php.net/manual/en/function.apc-fetch.php

« previous php.notes (#189512) next »