mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Add a regression test for auto_globals_jit=0 with preloading on
This commit is contained in:
committed by
Ilija Tovilo
parent
c4487b7a12
commit
bbad29b9c1
6
ext/opcache/tests/preloading_no_auto_globals_jit.inc
Normal file
6
ext/opcache/tests/preloading_no_auto_globals_jit.inc
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
class Test {
|
||||
function count_global_server() {
|
||||
return count($_SERVER);
|
||||
}
|
||||
}
|
||||
20
ext/opcache/tests/preloading_no_auto_globals_jit.phpt
Normal file
20
ext/opcache/tests/preloading_no_auto_globals_jit.phpt
Normal file
@@ -0,0 +1,20 @@
|
||||
--TEST--
|
||||
Preloading with auto_globals_jit=0
|
||||
--INI--
|
||||
auto_globals_jit=0
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.preload={PWD}/preloading_no_auto_globals_jit.inc
|
||||
--EXTENSIONS--
|
||||
opcache
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$test = new Test;
|
||||
var_dump($test->count_global_server());
|
||||
?>
|
||||
--EXPECTF--
|
||||
int(%d)
|
||||
Reference in New Issue
Block a user