File: issue012.phpt

package info (click to toggle)
php-yac 2.0.1%2B0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 548 kB
  • ctags: 565
  • sloc: ansic: 4,581; xml: 298; makefile: 1
file content (24 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
ISSUE #12 segfault if use mmap&k_size bigger than 4M
--SKIPIF--
<?php if (!extension_loaded("yac")) print "skip"; ?>
--INI--
yac.enable=1
yac.enable_cli=1
yac.keys_memory_size=8M
yac.values_memory_size=128M
--FILE--
<?php
$yac = new Yac();
$i = 0;
while (true) {
	$yac->set(rand(), strval(rand()), 2);
	$i++;
	if ($i > 20000) {
		break;
	}
}
?>
OKEY
--EXPECTF--
OKEY