Perf: elide discarded timezone lists, OB/HTTP/SPL getters, time (#36386) - #36788
Merged
PurHur merged 1 commit intoSep 5, 2026
Merged
Conversation
Skip lowering side-effect-free timezone_*_list, ob_list_handlers, date_get_last_errors, http_get_last_response_headers, spl_autoload_functions, time, and zero-arg error_reporting/ignore_user_abort/http_response_code/ headers_sent when the result is unused. Setter/by-ref forms and soft-null timezone_identifiers_list groups stay live. Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
deleted the
agent/issue-36386-tz-ob-date-http-autoload-time-elision
branch
September 5, 2026 04:34
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
timezone_abbreviations_list/timezone_identifiers_list(typed group),ob_list_handlers,date_get_last_errors,http_get_last_response_headers,spl_autoload_functions,time, and zero-argerror_reporting/ignore_user_abort/http_response_code/headers_sent.timezone_identifiers_listgroups, and country-code forms stay live (ArgumentCountError/ deprecate /ValueError).ext/date/php_date.c,ext/standard/output.c,ext/standard/http.c,ext/spl/php_spl.c,ext/standard/basic_functions.c,ext/standard/head.c.Test plan
./script/phpunit.sh --filter 'DiscardedPureCallElisionTest::testDiscardedDateObHttpSplTimeGetterRuntimeInfoElides|DiscardedDateObHttpSplTimeGetterElisionAotTest'→ OK (3 tests, 41 assertions)script/differential-sweep.sh --aot --repeat 3 --dir /tmp/diff36386(casediscarded_date_ob_http_spl_time_getter_elision_36386.php) →1/1 match Zendmake dev-verify-fast→ OK (aot-smoke 9/9, VM tier-0 15/15)make north-star5-verify-fast→ OK (spine 8215/8215)Closes nothing (epic #36386 stays open); Part of #36386.
Made with Cursor