Skip to content

Commit 62cb7dc

Browse files
committed
Disable FFI preload tests with opcache.preload_user
1 parent 976dd99 commit 62cb7dc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ext/ffi/tests/300.phpt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ FFI 300: FFI preloading
44
ffi
55
opcache
66
--SKIPIF--
7-
<?php if (substr(PHP_OS, 0, 3) == 'WIN') die('skip not for Windows'); ?>
7+
<?php
8+
if (substr(PHP_OS, 0, 3) == 'WIN') die('skip not for Windows');
9+
if (ini_get('opcache.preload_user')) die('skip FFI::load() does not support opcache.preload_user');
10+
?>
811
--INI--
912
ffi.enable=1
1013
opcache.enable=1

ext/ffi/tests/bug78761.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ffi
55
--SKIPIF--
66
<?php
77
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
8+
if (ini_get('opcache.preload_user')) die('skip FFI::load() does not support opcache.preload_user');
89
?>
910
--INI--
1011
opcache.enable_cli=1

0 commit comments

Comments
 (0)