Skip to content

Stdlib: align max/min/pow/fdiv Reflection with Zend stubs (#25459) - #33875

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-25459-math-reflection-names
Aug 22, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-25459-math-reflection-names

Conversation

@PurHur

@PurHur PurHur commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Summary

php-src

  • ext/standard/math.stub.php — pow / fdiv / fmod
  • ext/standard/basic_functions.stub.php — max / min

Test plan

  • ./script/docker-exec.sh -- bash -lc 'php bin/vm.php test/repro/issue_25459_max_min_pow_fdiv_reflection.php' → Zend-matching Reflection + named args
  • ./script/phpunit.sh --filter 'MaxMinPowFdivReflection|testMaxMinPowFdivReflectionStubTypes' → OK (3 tests, 19 assertions)
  • ./script/aot-smoke.sh → 8/8

Made with Cursor

Override BuiltinInternalArgInfo return/param types so Reflection and Zend
named args (pow num/exponent, fmod num1/num2) match php-src math stubs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit e36e796 into master Aug 22, 2026
1 check failed
@PurHur
PurHur deleted the agent/issue-25459-math-reflection-names branch August 22, 2026 18:42
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: max/min/pow/fdiv/fmod Reflection types/names — Zend value/...values, num/exponent, num1/num2 (ext/standard/math.stub.php)

1 participant