PATH:
opt
/
cpanel
/
ea-php56
/
root
/
usr
/
share
/
tests
/
pecl
/
apcu
/
tests
--TEST-- APC: Bug #61742 preload_path does not work due to incorrect string length (variant 1) (php 5.4) --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); if (PHP_MAJOR_VERSION < 5 || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 4)) { die('skip PHP 5.4+ only'); } if(PHP_ZTS === 1) { die('skip PHP non-ZTS only'); } --FILE-- <?php include "server_test.inc"; $file = <<<FL \$key = 'abc'; \$b = apc_exists(\$key); var_dump(\$b); if (\$b) { \$\$key = apc_fetch(\$key); var_dump(\$\$key); } FL; $args = array( 'apc.enabled=1', 'apc.enable_cli=1', 'apc.preload_path=' . dirname(__FILE__) . '/data', ); server_start($file, $args); for ($i = 0; $i < 10; $i++) { run_test_simple(); } echo 'done'; --EXPECT-- bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" bool(true) string(3) "123" done
[+]
data
[-] apc_bin_003.phpt
[edit]
[-] apc_007.phpt
[edit]
[-] bug63224.phpt
[edit]
[-] iterator_002.phpt
[edit]
[+]
..
[-] iterator_003.phpt
[edit]
[-] apc_011.phpt
[edit]
[-] apc54_018.phpt
[edit]
[-] apc_bin_004.phpt
[edit]
[-] apc_004.phpt
[edit]
[-] php_5_3_ns.inc
[edit]
[-] apc54_014.phpt
[edit]
[-] 023-2.inc
[edit]
[-] apc_005.phpt
[edit]
[-] apc_001.phpt
[edit]
[-] apc_bin_001.phpt
[edit]
[-] iterator_008.phpt
[edit]
[-] get_included_files_inc2.inc
[edit]
[-] apc_003b.phpt
[edit]
[-] get_included_files_inc1.inc
[edit]
[-] iterator_006.phpt
[edit]
[-] apc_010.phpt
[edit]
[-] iterator_004.phpt
[edit]
[-] apc_002.phpt
[edit]
[-] skipif.inc
[edit]
[-] server_test.inc
[edit]
[-] iterator_007.phpt
[edit]
[-] iterator_001.phpt
[edit]
[-] apc_003.phpt
[edit]
[-] iterator_005.phpt
[edit]
[-] 024.phpt
[edit]
[-] get_included_files_inc3.inc
[edit]
[-] apc_008.phpt
[edit]
[-] apc_bin_002.phpt
[edit]
[-] apc_006.phpt
[edit]