/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/opcache/tests/func_info.phpt
34 строки
662 B
Tim Düsterhus
RFC: Turn `clone()` into a function (#18919)
24 июн 2025, 21:14
Не верифицирован
24 июн 2025, 21:14
ca49a7b
Код
Авторство
О чём код?
--TEST-- Test that return types in zend_func_info.c match return types in stubs --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.optimization_level=-1 --EXTENSIONS-- opcache --FILE-- <?php $contents = "<?php\n"; $contents .= "function test() {\n"; foreach (get_defined_functions()["internal"] as $function) { if (in_array($function, ["extract", "compact", "get_defined_vars"])) { continue; } $contents .= " \$result = \\{$function}();\n"; } $contents .= "}\n"; file_put_contents("func_info_generated.php", $contents); require_once("func_info_generated.php"); ?> --CLEAN-- <?php unlink("func_info_generated.php"); ?> --EXPECT--