X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php80-pecl-apcu_5.1.23-1.el8/tests
opt
/
alt
/
tests
/
alt-php80-pecl-apcu_5.1.23-1.el8
/
tests
/
ðŸ“
..
📄
apc_001.phpt
(513 B)
📄
apc_002.phpt
(481 B)
📄
apc_003b.phpt
(1.74 KB)
📄
apc_003b_legacy.phpt
(1.69 KB)
📄
apc_004.phpt
(654 B)
📄
apc_005.phpt
(635 B)
📄
apc_005b.phpt
(705 B)
📄
apc_005c.phpt
(800 B)
📄
apc_006.phpt
(1.13 KB)
📄
apc_006_php73.phpt
(1.02 KB)
📄
apc_006_php81.phpt
(1.25 KB)
📄
apc_007.phpt
(1.05 KB)
📄
apc_008.phpt
(838 B)
📄
apc_010.phpt
(1.3 KB)
📄
apc_011.phpt
(380 B)
📄
apc_012.phpt
(606 B)
📄
apc_013_exists.phpt
(407 B)
📄
apc_014_store_ref.phpt
(392 B)
📄
apc_015.phpt
(255 B)
📄
apc_016.phpt
(613 B)
📄
apc_017.phpt
(326 B)
📄
apc_018.phpt
(193 B)
📄
apc_019.phpt
(732 B)
📄
apc_020.phpt
(802 B)
📄
apc_021.phpt
(903 B)
📄
apc_022.phpt
(620 B)
📄
apc_023.phpt
(1.15 KB)
📄
apc_024.phpt
(327 B)
📄
apc_025.phpt
(423 B)
📄
apc_099.phpt
(399 B)
📄
apc_disabled.phpt
(1.83 KB)
📄
apc_entry_001.phpt
(523 B)
📄
apc_entry_002.phpt
(434 B)
📄
apc_entry_003.phpt
(284 B)
📄
apc_entry_recursion.phpt
(374 B)
📄
apc_inc_perf.phpt
(548 B)
📄
apc_store_array_int_keys.phpt
(382 B)
📄
apc_store_array_with_refs.phpt
(254 B)
📄
apc_store_reference.phpt
(635 B)
📄
apc_store_reference_php8.phpt
(606 B)
📄
apc_store_string_reuse.phpt
(217 B)
📄
apcu_fetch_empty_array_reference.phpt
(693 B)
📄
apcu_sma_info.phpt
(583 B)
ðŸ“
bad
📄
bug76145.phpt
(886 B)
ðŸ“
data
📄
get_included_files_inc1.inc
(28 B)
📄
get_included_files_inc2.inc
(87 B)
📄
get_included_files_inc3.inc
(87 B)
📄
ghbug168.phpt
(469 B)
📄
ghbug185.phpt
(1.12 KB)
📄
ghbug247.phpt
(324 B)
📄
ghbug248.phpt
(2.92 KB)
📄
ghbug335-fail.phpt
(680 B)
📄
ghbug335.phpt
(673 B)
📄
iterator_001.phpt
(1.73 KB)
📄
iterator_002.phpt
(541 B)
📄
iterator_003.phpt
(1.75 KB)
📄
iterator_004.phpt
(594 B)
📄
iterator_005.phpt
(1.78 KB)
📄
iterator_006.phpt
(16.52 KB)
📄
iterator_007.phpt
(1.37 KB)
📄
iterator_008.phpt
(512 B)
📄
iterator_009.phpt
(382 B)
📄
iterator_010.phpt
(942 B)
📄
iterator_011.phpt
(665 B)
📄
not_enough_shm.phpt
(329 B)
📄
server_test.inc
(4.22 KB)
📄
skipif.inc
(79 B)
📄
sma001.phpt
(575 B)
📄
typed_prop.phpt
(678 B)
Editing: apc_003b_legacy.phpt
--TEST-- APC: apcu_store/fetch with objects --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); if (PHP_VERSION_ID >= 80100) die("skip For PHP < 8.1"); ?> --INI-- apc.enabled=1 apc.enable_cli=1 --FILE-- <?php class foo { } $foo = new foo; var_dump($foo); apcu_store('foo',$foo); unset($foo); $bar = apcu_fetch('foo'); var_dump($bar); $bar->a = true; var_dump($bar); class bar extends foo { public $pub = 'bar'; protected $pro = 'bar'; private $pri = 'bar'; // we don't see this, we'd need php 5.1 new serialization function __construct() { $this->bar = true; } function change() { $this->pri = 'mod'; } } class baz extends bar { private $pri = 'baz'; function __construct() { parent::__construct(); $this->baz = true; } } $baz = new baz; var_dump($baz); $baz->change(); var_dump($baz); apcu_store('baz', $baz); unset($baz); var_dump(apcu_fetch('baz')); ?> ===DONE=== --EXPECTF-- object(foo)#%d (0) { } object(foo)#%d (0) { } object(foo)#%d (1) { ["a"]=> bool(true) } object(baz)#%d (6) { ["pri":"baz":private]=> string(3) "baz" ["pub"]=> string(3) "bar" ["pro":protected]=> string(3) "bar" ["pri":"bar":private]=> string(3) "bar" ["bar"]=> bool(true) ["baz"]=> bool(true) } object(baz)#%d (6) { ["pri":"baz":private]=> string(3) "baz" ["pub"]=> string(3) "bar" ["pro":protected]=> string(3) "bar" ["pri":"bar":private]=> string(3) "mod" ["bar"]=> bool(true) ["baz"]=> bool(true) } object(baz)#%d (6) { ["pri":"baz":private]=> string(3) "baz" ["pub"]=> string(3) "bar" ["pro":protected]=> string(3) "bar" ["pri":"bar":private]=> string(3) "mod" ["bar"]=> bool(true) ["baz"]=> bool(true) } ===DONE===
Upload File
Create Folder