1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 02:52:48 +02:00
Files
archived-php-src/ext/opcache/tests/func_info.phpt
2020-06-06 09:23:34 +02:00

32 lines
575 B
PHP

--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
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$contents = "<?php\n";
$contents .= "function test() {\n";
foreach (get_defined_functions()["internal"] as $function) {
$contents .= " {$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--