Skip to content

Commit a2cecd2

Browse files
committed
Remove ZEND_STATIC_ASSERT() calls from legacy arginfo files
After report in php@5992a29#r143540472
1 parent c705dd8 commit a2cecd2

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

build/gen_stub.php

-8
Original file line numberDiff line numberDiff line change
@@ -4986,14 +4986,6 @@ function generateArgInfoCode(
49864986
$code = "/* This is a generated file, edit the .stub.php file instead.\n"
49874987
. " * Stub hash: $stubHash */\n";
49884988

4989-
$minimumPhpVersionIdCompatibility = $fileInfo->getMinimumPhpVersionIdCompatibility();
4990-
if ($minimumPhpVersionIdCompatibility !== null) {
4991-
$code .= "\nZEND_STATIC_ASSERT(PHP_VERSION_ID >= $minimumPhpVersionIdCompatibility, ";
4992-
$code .= "\"{$stubFilenameWithoutExtension}_arginfo.h only supports ";
4993-
$code .= "PHP version ID $minimumPhpVersionIdCompatibility or newer, \"\n";
4994-
$code .= "\t\"but it is included on an older PHP version\");\n";
4995-
}
4996-
49974989
$generatedFuncInfos = [];
49984990

49994991
$argInfoCode = generateCodeWithConditions(

ext/zend_test/test_arginfo.h

-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)