diff --git a/build/gen_stub.php b/build/gen_stub.php index 4efe0164c40..4b9809469a0 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -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( diff --git a/ext/zend_test/test_arginfo.h b/ext/zend_test/test_arginfo.h index 0fd8bed0501..cefd377b895 100644 --- a/ext/zend_test/test_arginfo.h +++ b/ext/zend_test/test_arginfo.h @@ -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()