1
0
Fork 0

adds tests for shallow copy

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1384 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 2013-09-22 16:04:13 +00:00
parent 8cf65a5bcd
commit f46ace6822
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,9 @@
--TEST--
xcache requires deep copying opcodes for __FILE__ and __DIR__
--INI--
--FILE--
<?php
echo __FILE__, PHP_EOL;
?>
--EXPECTF--
%sxcache_deep_copy_opcodes_for_const%s

View File

@ -0,0 +1,14 @@
--TEST--
xcache shallow copying precondition: early binding changes constant inside opcode for PHP5.2-
--SKIPIF--
<?php
if (version_compare(PHP_VERSION, "5.3", ">=")) {
die("skip only needed for PHP 5.2 or less");
}
?>
--FILE--
<?php
class A extends Exception {
}
?>
--EXPECT--