mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
0374cf08c7
--file-cache-prime populates the file cache, --file-cache-use uses the file cache. And fix a number of tests to run under file cache or disabled timestamp validation.
21 lines
530 B
PHP
21 lines
530 B
PHP
--TEST--
|
|
FFI 300: FFI preloading
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
<?php if (!extension_loaded('Zend OPcache')) die('skip Zend OPcache extension not available'); ?>
|
|
<?php if (substr(PHP_OS, 0, 3) == 'WIN') die('skip not for Windows'); ?>
|
|
--INI--
|
|
ffi.enable=1
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload.inc
|
|
opcache.file_cache_only=0
|
|
--FILE--
|
|
<?php
|
|
$ffi = FFI::scope("TEST_300");
|
|
$ffi->printf("Hello World from %s!\n", "PHP");
|
|
?>
|
|
--EXPECT--
|
|
Hello World from PHP!
|