1
0
Fork 0

adds ini and skips for testing this module alone

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1497 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
master
Xuefer 9 years ago
parent 7b282cc097
commit ffdf7568e5

@ -1,7 +1,13 @@
--TEST--
xcache requires deep copying arg info
--SKIPIF--
<?php
require("include-skipif.inc");
?>
--INI--
xcache.readonly_protection=0
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
function a($a = 1) {

@ -1,6 +1,12 @@
--TEST--
xcache requires deep copying opcodes for __FILE__ and __DIR__
--SKIPIF--
<?php
require("include-skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
echo __FILE__, PHP_EOL;

@ -1,7 +1,13 @@
--TEST--
xcache requires deep copying static variables in shallow copy mode
--SKIPIF--
<?php
require("include-skipif.inc");
?>
--INI--
xcache.readonly_protection=0
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
static $a = array(1);

@ -4,6 +4,9 @@ include absolute path
<?php
require("include-skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
include __DIR__ . "/sub-a.inc";

@ -4,6 +4,9 @@ include relative to current working dir
<?php
require("include-skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
chdir(__DIR__);

@ -4,6 +4,9 @@ include relative to current file
<?php
require("include-skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
include "sub-a.inc";

@ -4,6 +4,9 @@ xcache_is_autoglobal
<?php
require("skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
var_dump(xcache_is_autoglobal("GLOBALS"));

@ -2,10 +2,14 @@
xcache shallow copying precondition: early binding changes constant inside opcode for PHP5.2-
--SKIPIF--
<?php
require("include-skipif.inc");
if (version_compare(PHP_VERSION, "5.3", ">=")) {
die("skip only needed for PHP 5.2 or less");
}
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
class A extends Exception {

@ -4,6 +4,10 @@ xcache_set/get test
<?php
require("skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
xcache.var_size = 2M
--FILE--
<?php
var_dump(xcache_isset("a"));

Loading…
Cancel
Save