PATH:
opt
/
alt
/
tests
/
alt-php80-pecl-apcu_5.1.23-1.el8
/
tests
--TEST-- APC: apcu_store/fetch reference test --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); if (PHP_VERSION_ID < 80100) die('skip Only for PHP >= 8.1'); ?> --INI-- apc.enabled=1 apc.enable_cli=1 apc.serializer=php report_memleaks=0 --FILE-- <?php $a = 'a'; $b = array($a); $c = array('c'); $b[] = &$c; $b[] = &$c; $d = 'd'; $b[] = &$d; $b[] = &$d; $b[] = &$d; $e = 'e'; $b[] = $e; $b[] = $e; $f = array('f'); $f[] = &$f; $b[] = &$f; apcu_store('test', $b); $x = apcu_fetch('test'); debug_zval_dump($x); ?> ===DONE=== --EXPECTF-- array(9) refcount(2){ [0]=> string(1) "a" interned [1]=> reference refcount(2) { array(1) refcount(1){ [0]=> string(1) "c" interned } } [2]=> reference refcount(2) { array(1) refcount(1){ [0]=> string(1) "c" interned } } [3]=> reference refcount(3) { string(1) "d" interned } [4]=> reference refcount(3) { string(1) "d" interned } [5]=> reference refcount(3) { string(1) "d" interned } [6]=> string(1) "e" interned [7]=> string(1) "e" interned [8]=> reference refcount(2) { array(2) refcount(1){ [0]=> string(1) "f" interned [1]=> reference refcount(2) { *RECURSION* } } } } ===DONE===
[-] server_test.inc
[edit]
[-] get_included_files_inc3.inc
[edit]
[-] get_included_files_inc1.inc
[edit]
[-] apc_store_reference_php8.phpt
[edit]
[-] apc_015.phpt
[edit]
[-] apc_005b.phpt
[edit]
[-] apc_020.phpt
[edit]
[-] apc_018.phpt
[edit]
[-] iterator_009.phpt
[edit]
[-] iterator_010.phpt
[edit]
[-] apc_002.phpt
[edit]
[-] ghbug247.phpt
[edit]
[-] apc_005.phpt
[edit]
[-] ghbug185.phpt
[edit]
[-] iterator_011.phpt
[edit]
[-] apc_disabled.phpt
[edit]
[-] apc_006_php73.phpt
[edit]
[-] iterator_003.phpt
[edit]
[-] apc_024.phpt
[edit]
[-] apc_008.phpt
[edit]
[-] apc_inc_perf.phpt
[edit]
[-] iterator_004.phpt
[edit]
[-] apc_store_array_int_keys.phpt
[edit]
[-] apc_entry_001.phpt
[edit]
[-] apc_017.phpt
[edit]
[-] typed_prop.phpt
[edit]
[-] apc_014_store_ref.phpt
[edit]
[-] ghbug248.phpt
[edit]
[-] iterator_002.phpt
[edit]
[-] apc_025.phpt
[edit]
[-] apc_022.phpt
[edit]
[-] apc_016.phpt
[edit]
[-] ghbug335.phpt
[edit]
[-] apc_003b_legacy.phpt
[edit]
[-] not_enough_shm.phpt
[edit]
[-] iterator_001.phpt
[edit]
[-] apcu_sma_info.phpt
[edit]
[-] apc_012.phpt
[edit]
[-] apc_store_reference.phpt
[edit]
[-] apc_store_string_reuse.phpt
[edit]
[-] apc_store_array_with_refs.phpt
[edit]
[-] apc_entry_003.phpt
[edit]
[-] apc_001.phpt
[edit]
[+]
..
[-] bug76145.phpt
[edit]
[-] ghbug335-fail.phpt
[edit]
[-] apc_010.phpt
[edit]
[+]
bad
[-] iterator_005.phpt
[edit]
[-] iterator_008.phpt
[edit]
[-] apc_007.phpt
[edit]
[-] apc_005c.phpt
[edit]
[-] apc_003b.phpt
[edit]
[-] apc_006.phpt
[edit]
[-] iterator_007.phpt
[edit]
[-] apc_013_exists.phpt
[edit]
[-] apc_004.phpt
[edit]
[-] apc_entry_002.phpt
[edit]
[-] apc_099.phpt
[edit]
[-] iterator_006.phpt
[edit]
[-] apc_023.phpt
[edit]
[-] sma001.phpt
[edit]
[+]
data
[-] apc_021.phpt
[edit]
[-] skipif.inc
[edit]
[-] apc_019.phpt
[edit]
[-] apc_006_php81.phpt
[edit]
[-] apc_entry_recursion.phpt
[edit]
[-] ghbug168.phpt
[edit]
[-] get_included_files_inc2.inc
[edit]
[-] apc_011.phpt
[edit]
[-] apcu_fetch_empty_array_reference.phpt
[edit]