Skip to content

Stdlib: stream_bucket_new Reflection return object (#28824) - #29256

Merged
PurHur merged 1 commit into
masterfrom
fix/28824-stream-bucket-new-reflection-object
Aug 9, 2026
Merged

PurHur merged 1 commit into
masterfrom
fix/28824-stream-bucket-new-reflection-object

Conversation

@PurHur

@PurHur PurHur commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #28824

Test plan

  • unset PHP_COMPILER_PROFILE; php bin/vm.php test/repro/issue_28824_stream_bucket_new_reflection_object.php → ret=object
  • PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/issue_27797_stream_bucket_reflection.php → StreamBucket unchanged
  • vendor/bin/phpunit --filter "StreamBucketNewReflectionObjectVMTest|testStreamBucketNewReflectionObjectOnDefaultProfile|testStreamBucketReflectionStubsUnderProfile84" → OK (3 tests)

Verification transcript

$ unset PHP_COMPILER_PROFILE; php bin/vm.php test/repro/issue_28824_stream_bucket_new_reflection_object.php
ret=object

$ PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/issue_27797_stream_bucket_reflection.php
stream_bucket_new(...): StreamBucket
…

$ vendor/bin/phpunit --filter "StreamBucketNewReflectionObjectVMTest|testStreamBucketNewReflectionObjectOnDefaultProfile|testStreamBucketReflectionStubsUnderProfile84"
OK (3 tests, 12 assertions)

php-src ref: ext/standard/basic_functions.stub.php (8.2 object return). Not covered: full ci-fast.sh / AOT.

Made with Cursor

Default / ≤8.3 profile advertises object (Zend 8.2 stubs); PROFILE≥8.4 keeps
StreamBucket from #27797. PHP-in-PHP BuiltinInternalArgInfo only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: stream_bucket_new Reflection return resource — Zend object (re-#27797 default profile, ext/standard/streamsfuncs.stub.php)

1 participant