{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/13329","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/13329/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/13329/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/13329/events","html_url":"https://github.com/laravel/framework/issues/13329","id":151317779,"number":13329,"title":"json_encode returning false","user":{"login":"pavankumarkatakam","id":6078669,"avatar_url":"https://avatars.githubusercontent.com/u/6078669?v=3","gravatar_id":"","url":"https://api.github.com/users/pavankumarkatakam","html_url":"https://github.com/pavankumarkatakam","followers_url":"https://api.github.com/users/pavankumarkatakam/followers","following_url":"https://api.github.com/users/pavankumarkatakam/following{/other_user}","gists_url":"https://api.github.com/users/pavankumarkatakam/gists{/gist_id}","starred_url":"https://api.github.com/users/pavankumarkatakam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavankumarkatakam/subscriptions","organizations_url":"https://api.github.com/users/pavankumarkatakam/orgs","repos_url":"https://api.github.com/users/pavankumarkatakam/repos","events_url":"https://api.github.com/users/pavankumarkatakam/events{/privacy}","received_events_url":"https://api.github.com/users/pavankumarkatakam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-04-27T07:34:02Z","updated_at":"2016-06-01T04:16:32Z","closed_at":null,"body":"Hi, im using \r\n\r\n```\r\nPHP 7.0.4-7ubuntu2 (cli) ( NTS )\r\nCopyright (c) 1997-2016 The PHP Group\r\nZend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies\r\n    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies\r\n```\r\nAnd\r\n`\r\nLaravel Framework version 5.1.34 (LTS)`\r\n\r\nWhen giving the below value to `json_encode` it is returning false rather than string\r\n\r\n```\r\nIlluminate\\Database\\Eloquent\\Collection {#3502\r\n     all: [\r\n       App\\User {#3487\r\n         last_active: \"\",\r\n       },\r\n     ],\r\n   }\r\n\r\n```\r\nbut it is returning correct string in `php5-fpm`.\r\n\r\ntwo days back only i upgraded to php7 and observed this error.\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/222888376","html_url":"https://github.com/laravel/framework/issues/13329#issuecomment-222888376","issue_url":"https://api.github.com/repos/laravel/framework/issues/13329","id":222888376,"user":{"login":"pavankumarkatakam","id":6078669,"avatar_url":"https://avatars.githubusercontent.com/u/6078669?v=3","gravatar_id":"","url":"https://api.github.com/users/pavankumarkatakam","html_url":"https://github.com/pavankumarkatakam","followers_url":"https://api.github.com/users/pavankumarkatakam/followers","following_url":"https://api.github.com/users/pavankumarkatakam/following{/other_user}","gists_url":"https://api.github.com/users/pavankumarkatakam/gists{/gist_id}","starred_url":"https://api.github.com/users/pavankumarkatakam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavankumarkatakam/subscriptions","organizations_url":"https://api.github.com/users/pavankumarkatakam/orgs","repos_url":"https://api.github.com/users/pavankumarkatakam/repos","events_url":"https://api.github.com/users/pavankumarkatakam/events{/privacy}","received_events_url":"https://api.github.com/users/pavankumarkatakam/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T04:16:32Z","updated_at":"2016-06-01T04:16:32Z","body":"Hi @srmklive , this is already a bug in the php repo and fixed in the php 7.0.7 version. So im closing it."}}
{"actor":{"display_login":"pavankumarkatakam"}}