Stdlib: str_increment/str_decrement phantom function_exists on 8.2 reference (#16292) - #16297
Merged
Merged
Conversation
…8.2 reference (#16292) Split callable registration (supportsStrIncrement, forward PHP_COMPILER_PROFILE=8.3+) from introspection advertisement (advertisesStrIncrement) so default 8.4.0-dev matches Zend 8.2 function_exists/get_defined_functions while forward profile keeps callability. Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur
added a commit
that referenced
this pull request
Jul 5, 2026
#16354). (#16355) Master's fast gate is red in a clean pinned container because three generated docs went stale under recent merges: - docs/capabilities.md + capability-comparison.html: drop the str_increment/str_decrement rows — f3b4ab5 (#16297) withholds them on the 8.4.0-dev reference profile, so a clean regen no longer emits them (rows were last synced before the gate change). - docs/bootstrap-inventory.md + bootstrap-profile.json: method-count drift from the phpinfo/phpcredits CREDITS sections (#16353). - docs/capabilities-syntax.md: asymmetric private(set) row flips AOT yes->no — honest probe result, real regression filed as #16354 (AOT reads garbage and the set guard never fires). All regenerated inside php-compiler:22.04-dev; check-generated-docs.sh green afterwards. Co-authored-by: PurHur <tedyyyyy@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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
supportsStrIncrement()(callable registration; forwardPHP_COMPILER_PROFILE=8.3+or stable 8.4+) from newadvertisesStrIncrement()(function_exists / get_defined_functions gate).str_increment/str_decrementthroughBuiltinIntrospectionPolicyso default 8.4.0-dev reference profile matches Zend 8.2 (absent from introspection).--ENV-- PHP_COMPILER_PROFILE=8.3).php-src reference:
ext/standard/string.c—PHP_FUNCTION(str_increment)/PHP_FUNCTION(str_decrement)(PHP 8.3); introspection gate pattern from #11842 / #16086 (zend_thread_id,mb_str_pad).Test plan
Closes #16292
Made with Cursor