{"action":"closed","issue":{"url":"https://api.github.com/repos/peter-gribanov/sphinx-php-client/issues/2","repository_url":"https://api.github.com/repos/peter-gribanov/sphinx-php-client","labels_url":"https://api.github.com/repos/peter-gribanov/sphinx-php-client/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/peter-gribanov/sphinx-php-client/issues/2/comments","events_url":"https://api.github.com/repos/peter-gribanov/sphinx-php-client/issues/2/events","html_url":"https://github.com/peter-gribanov/sphinx-php-client/issues/2","id":145732500,"number":2,"title":"[Insight] exit() and die() functions should be avoided - in src/test.php, line 50","user":{"login":"peter-gribanov","id":1954436,"avatar_url":"https://avatars.githubusercontent.com/u/1954436?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-gribanov","html_url":"https://github.com/peter-gribanov","followers_url":"https://api.github.com/users/peter-gribanov/followers","following_url":"https://api.github.com/users/peter-gribanov/following{/other_user}","gists_url":"https://api.github.com/users/peter-gribanov/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-gribanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-gribanov/subscriptions","organizations_url":"https://api.github.com/users/peter-gribanov/orgs","repos_url":"https://api.github.com/users/peter-gribanov/repos","events_url":"https://api.github.com/users/peter-gribanov/events{/privacy}","received_events_url":"https://api.github.com/users/peter-gribanov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-04T16:18:17Z","updated_at":"2016-04-04T16:29:27Z","closed_at":"2016-04-04T16:29:27Z","body":"**[in src/test.php, line 50](https://github.com/peter-gribanov/sphinx-php-client/blob/0dda59f267a90007c5ecc9978f9168b24ce1bfc9/src/test.php#L50)**\r\n\r\n> This line stops the execution flow, without explanation. If this is for debug, you should remove it. If this is to deal with an error, use exceptions instead.\r\n\r\n```php\r\n-gs,--groupsort <EXPR> sort groups by 'EXPR'\r\n-d, --distinct <ATTR>  count distinct values of 'ATTR'\r\n-l, --limit <COUNT>    retrieve COUNT matches (default: 20)\r\n--select <EXPRLIST>    use 'EXPRLIST' as select-list (default: *)\r\nEOF;\r\n    exit;\r\n}\r\n\r\n$args = array();\r\nforeach ($_SERVER['argv'] as $arg) {\r\n    $args[] = $arg;\r\n```\r\n\r\n---------------------\r\n\r\n_Posted from [SensioLabsInsight](https://insight.sensiolabs.com/projects/b370b11f-f70f-421c-b2d8-e7411b74bb33/analyses/8)_"}}