Skip to content

Stdlib: exec family Reflection returns (#28842) - #29807

Merged
PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-28842-exec-reflection-returns
Aug 10, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-28842-exec-reflection-returns

Conversation

@PurHur

@PurHur PurHur commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Align exec / system / passthru / shell_exec Reflection return types with php-src basic_functions.stub.php.
  • PHP-in-PHP only (lib/BuiltinInternalArgInfo.php); compliance + unit guards.

Closes #28842

Test plan

  • PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/issue_28842_exec_reflection_returns.php
  • vendor/bin/phpunit --filter "ExecFamilyReflectionReturnsVMTest|testExecFamilyStubReturnTypes"

Verification transcript

$ PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/issue_28842_exec_reflection_returns.php
exec string|false
system string|false
passthru ?false
shell_exec string|false|null

$ vendor/bin/phpunit --filter "ExecFamilyReflectionReturnsVMTest|testExecFamilyStubReturnTypes"
OK (2 tests, 5 assertions)

Made with Cursor

…#28842)

Override InternalArgInfo return labels so Reflection reports string|false, ?false, and string|false|null per basic_functions.stub.php.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit d6d291d into master Aug 10, 2026
1 check failed
@PurHur
PurHur deleted the agent/advanced-stdlib-28842-exec-reflection-returns branch August 10, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant