1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove ZEND_STATIC_ASSERT() calls from legacy arginfo files

After report in 5992a29724 (r143540472)
This commit is contained in:
Máté Kocsis
2024-06-27 21:52:27 +02:00
parent c705dd8884
commit a2cecd2a6f
2 changed files with 0 additions and 11 deletions

View File

@@ -4986,14 +4986,6 @@ function generateArgInfoCode(
$code = "/* This is a generated file, edit the .stub.php file instead.\n"
. " * Stub hash: $stubHash */\n";
$minimumPhpVersionIdCompatibility = $fileInfo->getMinimumPhpVersionIdCompatibility();
if ($minimumPhpVersionIdCompatibility !== null) {
$code .= "\nZEND_STATIC_ASSERT(PHP_VERSION_ID >= $minimumPhpVersionIdCompatibility, ";
$code .= "\"{$stubFilenameWithoutExtension}_arginfo.h only supports ";
$code .= "PHP version ID $minimumPhpVersionIdCompatibility or newer, \"\n";
$code .= "\t\"but it is included on an older PHP version\");\n";
}
$generatedFuncInfos = [];
$argInfoCode = generateCodeWithConditions(

View File

@@ -1,9 +1,6 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 6b49c60e3b86415a0e0d95cd915419fac39de531 */
ZEND_STATIC_ASSERT(PHP_VERSION_ID >= 80000, "test_arginfo.h only supports PHP version ID 80000 or newer, "
"but it is included on an older PHP version");
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_array_return, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()