﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	appname	phpversion	exts	sapi	probability	blockedby	blocking
285	check for cli and setup xcache.var_size before commencing xcache_var.phpt	denu	moo	"hi,

supporting ''make test''ers 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"	enhancement	new	trivial	undecided	build	2.0.1		test case, cli, ini			5.*		Irrelevant	Always		
