File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -169,10 +169,15 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
169
169
SourcePatcher::patchBeforeConfigure ($ this );
170
170
171
171
$ phpVersionID = $ this ->getPHPVersionID ();
172
-
173
172
$ json_74 = $ phpVersionID < 80000 ? '--enable-json ' : '' ;
174
- $ maxExecutionTimers = $ this ->getOption ('enable-zts ' , false ) && $ this ->getPHPVersionID () > 81000 ? '--enable-zend-max-execution-timers ' : '' ;
175
- $ zts = $ this ->getOption ('enable-zts ' , false ) ? '--enable-zts --disable-zend-signals ' : '' ;
173
+
174
+ if ($ this ->getOption ('enable-zts ' , false )) {
175
+ $ maxExecutionTimers = $ phpVersionID >= 80100 ? '--enable-zend-max-execution-timers ' : '' ;
176
+ $ zts = '--enable-zts --disable-zend-signals ' ;
177
+ } else {
178
+ $ maxExecutionTimers = '' ;
179
+ $ zts = '' ;
180
+ }
176
181
177
182
shell ()->cd (SOURCE_PATH . '/php-src ' )
178
183
->exec (
You can’t perform that action at this time.
0 commit comments