Skip to content

Don't accept objects in random places in curl #5773

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 Jun 26, 2020

https://bugs.php.net/bug.php?id=79741 is another great illustration why it is such a bad idea to silently accept objects where arrays are expected. Remove this "feature" for PHP 8. Code intentionally passing an object will have to perform the hard task of adding an (array) cast.

@php-pulls php-pulls closed this in 6e1990d Jun 29, 2020
@carusogabriel carusogabriel added this to the PHP 8.0 milestone Jun 29, 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