adds tests for shallow copy
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1384 c26eb9a1-5813-0410-bd6c-c2e55f420ca73.1
parent
8cf65a5bcd
commit
f46ace6822
|
@ -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
|
|
@ -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--
|
Loading…
Reference in New Issue