File: apc_store_string_reuse.phpt

package info (click to toggle)
php-apcu 5.1.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 840 kB
  • sloc: ansic: 4,414; php: 907; xml: 766; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
The same string is used as the cache key and an array key
--INI--
apc.enabled=1
apc.enable_cli=1
apc.serializer=default
--FILE--
<?php

$key = 'key';
$a = [$key => null];
apcu_store($key, $a);

?>
--EXPECT--