~ubuntu-branches/ubuntu/vivid/php-apcu/vivid

« back to all changes in this revision

Viewing changes to apcu-4.0.4/tests/apc_011.phpt

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2014-06-24 10:52:52 UTC
  • mfrom: (7.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20140624105252-vsqs1r4og4ykucqg
Tags: 4.0.6-1
* New upstream version 4.0.6
* Remove PHP 5.6 support patch - merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--TEST--
2
 
APC: apc_fetch resets array pointers
3
 
--SKIPIF--
4
 
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5
 
--INI--
6
 
apc.enabled=1
7
 
apc.enable_cli=1
8
 
apc.file_update_protection=0
9
 
--FILE--
10
 
<?php
11
 
$items = array('bar', 'baz');
12
 
 
13
 
apc_store('test', $items);
14
 
 
15
 
$back = apc_fetch('test');
16
 
 
17
 
var_dump(current($back));
18
 
var_dump(current($back));
19
 
 
20
 
?>
21
 
===DONE===
22
 
<?php exit(0); ?>
23
 
--EXPECTF--
24
 
string(3) "bar"
25
 
string(3) "bar"
26
 
===DONE===