Skip to content

Fix object casting bug in array_column - #316

Closed
bukka wants to merge 2 commits into
php:masterfrom
bukka:array_column_cast_bug
Closed

bukka wants to merge 2 commits into
php:masterfrom
bukka:array_column_cast_bug

Conversation

@bukka

@bukka bukka commented Mar 31, 2013

Copy link
Copy Markdown
Member

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

bukka commented Mar 31, 2013

Copy link
Copy Markdown
Member Author

Example of the bug:

http://3v4l.org/fFZYZ

see variables type after calling array_column...

@laruence

laruence commented Apr 1, 2013

Copy link
Copy Markdown
Member

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

@laruence

laruence commented Apr 1, 2013

Copy link
Copy Markdown
Member

fixed in d8a5f41

@php-pulls

Copy link
Copy Markdown

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