{"action":"opened","issue":{"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/265","repository_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php","labels_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/265/comments","events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/265/events","html_url":"https://github.com/zendesk/zendesk_api_client_php/issues/265","id":176074424,"number":265,"title":"Count and results inconsistent in return object","user":{"login":"netbrothers-tr","id":15143604,"avatar_url":"https://avatars.githubusercontent.com/u/15143604?v=3","gravatar_id":"","url":"https://api.github.com/users/netbrothers-tr","html_url":"https://github.com/netbrothers-tr","followers_url":"https://api.github.com/users/netbrothers-tr/followers","following_url":"https://api.github.com/users/netbrothers-tr/following{/other_user}","gists_url":"https://api.github.com/users/netbrothers-tr/gists{/gist_id}","starred_url":"https://api.github.com/users/netbrothers-tr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netbrothers-tr/subscriptions","organizations_url":"https://api.github.com/users/netbrothers-tr/orgs","repos_url":"https://api.github.com/users/netbrothers-tr/repos","events_url":"https://api.github.com/users/netbrothers-tr/events{/privacy}","received_events_url":"https://api.github.com/users/netbrothers-tr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-09T18:18:25Z","updated_at":"2016-09-09T18:18:25Z","closed_at":null,"body":"I am using the client among other things to retrieve open tickets for a specific requester. I'm using the [Search API](https://developer.zendesk.com/rest_api/docs/core/search) for that. Here's a simple code snippet for illustration purposes.\r\n\r\n```\r\n$query = 'type:ticket status:open requester_id:' . $requesterId;\r\n$ticketsFound = $zendeskClient->search()->find($query);\r\n```\r\n\r\nSometimes I receive an (unmodified) return object that looks like this.\r\n```\r\nstdClass Object (\r\n     [results] => Array ( )\r\n     [facets] =>\r\n     [next_page] =>\r\n     [previous_page] =>\r\n     [count] => 1\r\n)\r\n```\r\nThus, the count conflicts with the actual results. Is this a known issue with Zendesk or is this the intended behaviour?"}}
{"actor":{"display_login":"netbrothers-tr"}}