xref: /PHP-8.4/ext/opcache/tests/jit/gh15821.phpt (revision 7c8b3b2c)
1--TEST--
2GH-15821 (Core dumped in Zend/Optimizer/zend_inference.c:4062)
3--EXTENSIONS--
4opcache
5--INI--
6opcache.jit=1203
7opcache.jit_buffer_size=64M
8--FILE--
9<?php
10$allInternalFunctions = array();
11$definedFunctions = get_defined_functions();
12$internalFunctions = $definedFunctions['internal'];
13$allInternalFunctions = array_merge($allInternalFunctions, $internalFunctions);
14$allInternalFunctions = array_filter($allInternalFunctions, function($func) {
15    strpos($func, 'posix_') !== 0;
16});
17echo "Done\n";
18?>
19--EXPECT--
20Done
21