Skip to content

Commit 12c92ac

Browse files
committed
Fix test
The memory occupied by “dummy” should be large enough for one of the entries inserted by the loop to fit into it. This allows the last inserted record of the loop (which triggers expunge) to replace this entry, which prevents a real_expunge of the whole cache.
1 parent 65b540e commit 12c92ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/apc_020.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apc.shm_size=1M
1717
apcu_store("no_ttl_unaccessed", 12);
1818
apcu_store("no_ttl_accessed", 24);
1919
apcu_store("ttl", 42, 3);
20-
apcu_store("dummy", "xxx");
20+
apcu_store("dummy", str_repeat('x', 1000));
2121

2222
apcu_inc_request_time(1);
2323
apcu_fetch("no_ttl_accessed");

0 commit comments

Comments
 (0)