Ticket #285 (new enhancement)
check for cli and setup xcache.var_size before commencing xcache_var.phpt
| Reported by: | denu | Owned by: | moo |
|---|---|---|---|
| Priority: | trivial | Milestone: | undecided |
| Component: | build | Version: | 2.0.1 |
| Keywords: | test case, cli, ini | Cc: | |
| Blocked By: | PHP Version: | 5.* | |
| Application: | Need User Feedback: | no | |
| Other Exts: | SAPI: | Irrelevant | |
| Probability: | Always | Blocking: |
Description
hi,
supporting make testers by having some phpt's is great; thank you for that! We frequently do make test after compiling php to get an idea of the overall state, new bugs and such.
We do this by using cli sapi.
1) xcache_var.phpt does not check for cli-usage
and consequently reports FAIL, because var caching is not supported via cli(?).
if you could add something like
--SKIPIF--
<?php
if (php_sapi_name() == 'cli') {
die('skip not available for CLI');
}
?>
to tests/xcache_var.phpt, that'll be gone.
2) xcache_var.phpt tries to use var_cache features
but without requesting a testcase ini-setup and FAILs (even with other sapi), if xcache.var_size is still set to ootb-default (0).
if you could add something like
--INI-- xcache.var_size=48k xcache.var_count=1 xcache.var_slots=8K xcache.var_ttl=0 xcache.var_maxttl=0 xcache.var_gc_interval=300
to tests/xcache_var.phpt, this testcase would reliably work, regardless of ini settings or even ootb/unconfigured.
thank you

