Stdlib: PHP_BUILD_DATE on PROFILE=8.5 (#23231)#23236
Merged
Merged
Conversation
Define the PHP 8.5 Core constant with a deterministic M j Y H:i:s stamp, and teach createFromFormat textual month (M) + space-padded day so the value parses under php-src-strict. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jul 26, 2026
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
PHP_BUILD_DATEwhenPHP_COMPILER_PROFILE=8.5(deterministicJan 1 2026 00:00:00stamp; withheld on ≤8.4).createFromFormatwith textual monthMand whitespace-tolerantjso the stamp parses like php-src/__DATE__.Closes #23231
php-src reference
main/php_version.h/main/main.c—PHP_BUILD_DATEM j Y H:i:s(php.watch / php-src__DATE__+__TIME__)PHP implementation
lib/CompilerVersion.php—supportsPhpBuildDateConstant()/PHP_BUILD_DATE_STAMPext/standard/VmPhpCoreConstants.php— forward-profile Core registrationext/standard/VmDateTimeNative.php—M+ space-paddedjTest plan
PHP_COMPILER_PROFILE=8.5 php bin/vm.php test/repro/maintainer_gap_php_build_date_85.php→okdefined('PHP_BUILD_DATE')falsevendor/bin/phpunit --filter testSupportsPhpBuildDateConstant→ OK (3)vendor/bin/phpunit --filter php_build_date test/compliance/VMTest.php→ OK (2)Verification transcript
Trust probe (pre-claim): inventory OK 6561/6561;
user_release_ready: no(knownnorth-star5-fastgen-0 mismatch on master).Made with Cursor