Skip to content

Don't allow passing unknown named params to class without ctor #6364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Oct 21, 2020

This has been brought up by @TysonAndre in https://externals.io/message/112083.

Copy link
Contributor

@TysonAndre TysonAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I assume that the caller would have been the cause of throwing if the function didn't have the ZEND_ACC_VARIADIC flag.

I'm guessing it's redundant to have separate tests for user-defined classes with no constructors if there are no plans to make their behavior diverge

@php-pulls php-pulls closed this in 078df4d Oct 23, 2020
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.

2 participants