mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add a regression test for auto_globals_jit=0 with preloading on
This commit is contained in:
parent
c4487b7a12
commit
bbad29b9c1
2 changed files with 26 additions and 0 deletions
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)
|
Loading…
Add table
Add a link
Reference in a new issue