yiisoft/yii2 — pull request #6082 by wenbin1989 (2014-11-17 04:51:53+00:00)
Title: fix phpTypecast bugs

if phpType is string and value type is resource, we must use `stream_get_contents` to cast value to string, instead of return the resource handle.