Skip to content

Conversation

@mkornaukhov
Copy link
Contributor

@mkornaukhov mkornaukhov commented May 23, 2025

PHP fails to call mt_rand() or rand() with single argument.
Previously KPHP failed on C++ --> object, this PR changes behavior so that the human-readable error will be fired in PHP --> C++ stage.

@mkornaukhov mkornaukhov added this to the next milestone May 23, 2025
@mkornaukhov mkornaukhov self-assigned this May 23, 2025
@mkornaukhov mkornaukhov added the bug Something isn't working label May 23, 2025
@mkornaukhov mkornaukhov changed the title Fire error in case of rand function with single arg Fire error in case of rand functions with single arg May 23, 2025
@mkornaukhov mkornaukhov merged commit 70ccbac into master May 26, 2025
7 checks passed
@mkornaukhov mkornaukhov deleted the mkornaukhov03/fix-default-args branch May 26, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants