mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
gen_stub: Fix compatibility with php 7.4 (in PHP-8.4) (#21076)
This commit is contained in:
committed by
GitHub
parent
371422b9b9
commit
23f4b93523
@@ -84,7 +84,7 @@ function processStubFile(string $stubFile, Context $context, bool $includeOnly =
|
||||
}
|
||||
|
||||
/* Because exit() and die() are proper token/keywords we need to hack-around */
|
||||
$hasSpecialExitAsFunctionHandling = str_ends_with($stubFile, 'zend_builtin_functions.stub.php');
|
||||
$hasSpecialExitAsFunctionHandling = basename($stubFile) == 'zend_builtin_functions.stub.php';
|
||||
if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
|
||||
initPhpParser();
|
||||
$stubContent = $stubCode ?? file_get_contents($stubFile);
|
||||
|
||||
Reference in New Issue
Block a user