Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 3447e39793d15911bf3fc0a8996e2c90 > files > 59

php-apc-3.1.15-4.10.mga4.x86_64.rpm

--TEST--
APC: apc_fetch resets array pointers
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--INI--
apc.enabled=1
apc.enable_cli=1
apc.file_update_protection=0
--FILE--
<?php
$items = array('bar', 'baz');

apc_store('test', $items);

$back = apc_fetch('test');

var_dump(current($back));
var_dump(current($back));

?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
string(3) "bar"
string(3) "bar"
===DONE===