Skip to content

Fix object casting bug in array_column #316

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 2 commits into from

Conversation

bukka
Copy link
Member

@bukka bukka commented Mar 31, 2013

There is a bug when an object variable is passed as a second or/and third parameter to array_column. The variable is cast to string - it means that the variable change type after calling array_column which does not seem as a correct behavior. This patch fixes it.

@bukka
Copy link
Member Author

bukka commented Mar 31, 2013

Example of the bug:

http://3v4l.org/fFZYZ

see variables type after calling array_column...

@laruence
Copy link
Member

laruence commented Apr 1, 2013

thanks for reporting this, however I get another way to fix this. which is more general and clear

@laruence
Copy link
Member

laruence commented Apr 1, 2013

fixed in d8a5f41

@php-pulls
Copy link

Comment on behalf of laruence at php.net:

close

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.

3 participants