@@ -83,14 +83,9 @@ function processStubFile(string $stubFile, Context $context, bool $includeOnly =
83
83
}
84
84
}
85
85
86
- /* Because exit() and die() are proper token/keywords we need to hack-around */
87
- $ hasSpecialExitAsFunctionHandling = str_ends_with ($ stubFile , 'zend_builtin_functions.stub.php ' );
88
86
if (!$ fileInfo = $ context ->parsedFiles [$ stubFile ] ?? null ) {
89
87
initPhpParser ();
90
88
$ stubContent = $ stubCode ?? file_get_contents ($ stubFile );
91
- if ($ hasSpecialExitAsFunctionHandling ) {
92
- $ stubContent = str_replace (['exit ' , 'die ' ], ['exit_dummy ' , 'die_dummy ' ], $ stubContent );
93
- }
94
89
$ fileInfo = parseStubFile ($ stubContent );
95
90
$ context ->parsedFiles [$ stubFile ] = $ fileInfo ;
96
91
@@ -124,9 +119,6 @@ function processStubFile(string $stubFile, Context $context, bool $includeOnly =
124
119
$ context ->allConstInfos ,
125
120
$ stubHash
126
121
);
127
- if ($ hasSpecialExitAsFunctionHandling ) {
128
- $ arginfoCode = str_replace (['exit_dummy ' , 'die_dummy ' ], ['exit ' , 'die ' ], $ arginfoCode );
129
- }
130
122
if (($ context ->forceRegeneration || $ stubHash !== $ oldStubHash ) && file_put_contents ($ arginfoFile , $ arginfoCode )) {
131
123
echo "Saved $ arginfoFile \n" ;
132
124
}
@@ -6152,7 +6144,7 @@ function initPhpParser() {
6152
6144
}
6153
6145
6154
6146
$isInitialized = true;
6155
- $version = "5.0.0 ";
6147
+ $version = "5.3.1 ";
6156
6148
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
6157
6149
if (!is_dir($phpParserDir)) {
6158
6150
installPhpParser($version, $phpParserDir);
0 commit comments