1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00

Merge branch 'PHP-8.2'

* PHP-8.2:
  Add a regression test for auto_globals_jit=0 with preloading on
This commit is contained in:
Ilija Tovilo
2022-12-22 17:42:37 +01:00
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<?php
class Test {
function count_global_server() {
return count($_SERVER);
}
}

View 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)