-
Notifications
You must be signed in to change notification settings - Fork 53
Added minTtl => 1 to AbstractZendServer options #61
Conversation
I hacked it together to make the tests run but there is one failure :(
install zend server and run the tests
<?php
chdir(__DIR__ . '/zend-cache');
$_SERVER['argv'] = ['vendor/bin/phpunit', 'test/Storage/Adapter/ZendServerShmTest.php'];
//$_SERVER['argv'] = ['vendor/bin/phpunit', 'test/Storage/Adapter/ZendServerDiskTest.php'];
//$_SERVER['argv'] = ['vendor/bin/phpunit', 'test/Storage/Adapter/AbstractZendServerTest.php'];
$_SERVER['argc'] = count($_SERVER['argv']);
include 'vendor/bin/phpunit';
PS: wow that was shitty. The good thing is that I found another bug that I fixed in #76 @weierophinney Could we have a way of automatically running the Zend Server tests? I think it's worst for Zend having both products not tested against. |
Ok this particular test failure is a bug in Zend Data Cache: zend_disk_cache_store('zf::key', 'test', 1);
sleep(1);
var_dump(zend_disk_cache_fetch('zf::key'));
var_dump(zend_disk_cache_fetch('zf::key'));
zend_shm_cache_store('zf::key', 'test', 1);
sleep(1);
var_dump(zend_shm_cache_fetch('zf::key'));
var_dump(zend_shm_cache_fetch('zf::key'));
|
|
Here is a link to share: https://support.zend.com/hc/en-us/articles/203995253-Expired-data-cache-can-be-read-by-subsequent-scripts-for-a-time How we gonna deal with it: For the PSR-6 wrapper #54 it would mean that this capability also needs to be checked as in PSR-6 it's not allowed to retrieve expired items (as I understand). @kynx @Maks3w If you agree I create ań issue for this new capability and this PR needs to wait. |
Yup, sounds good to me. Though I'm getting worried about the number of adapters I'm excluding from #54 :| This isn't an entirely crazy feature. |
As requested in #54