Repository navigation
Stdlib: fstat Reflection return array|false (#28483) - #30085
Merged
Merged
Conversation
Override InternalArgInfo array-only return so Reflection matches file.stub.php array|false. Co-authored-by: Cursor <cursoragent@cursor.com>
Closed
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
BuiltinInternalArgInfosoReflectionFunction('fstat')returnsarray|false, matching php-srcext/standard/file.stub.php(Regression: fstat Reflection return array — Zend array|false (ext/standard/file.stub.php) #28483).Test plan
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && php bin/vm.php test/repro/issue_28483_fstat_reflection_return.php'→array|false(master blob swap:array)php -d memory_limit=1536M vendor/bin/phpunit --filter testFstatStubReturnArrayFalse test/unit/BuiltinParamNamesAliasTest.php→ OKphp -d memory_limit=1536M vendor/bin/phpunit --filter FstatReflectionReturnVMTest test/compliance/FstatReflectionReturnVMTest.php→ OKCloses #28483
Made with Cursor