| Server IP : 217.160.0.32 / Your IP : 216.73.217.98 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u75532419 ( 2865557) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/php8.2/test/Cache_Lite/tests/ |
Upload File : |
<?php
/**
* Process for test pearbug18192
*
* @see https://pear.php.net/bugs/bug.php?id=18192
* @author Markus Tacker <tacker@php.net>
*/
require_once __DIR__ . '/../Cache/Lite.php';
$c = new Cache_Lite(array('cacheDir' => '.', 'lifeTime' => 60));
$id = '#18192';
for ($i = 0; $i < 100000; $i++) {
$str = uniqid('some-string', true);
if (!$c->save($str, $id)) fputs(STDERR, "Error saving.\n");
if ($c->get($id) !== $str) fputs(STDERR, "Wrong data.\n");
}