{"action":"created","issue":{"url":"https://api.github.com/repos/donatj/PhpUserAgent/issues/27","labels_url":"https://api.github.com/repos/donatj/PhpUserAgent/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/donatj/PhpUserAgent/issues/27/comments","events_url":"https://api.github.com/repos/donatj/PhpUserAgent/issues/27/events","html_url":"https://github.com/donatj/PhpUserAgent/pull/27","id":95842905,"number":27,"title":"Remove anonymous function call","user":{"login":"toolstack","id":9053749,"avatar_url":"https://avatars.githubusercontent.com/u/9053749?v=3","gravatar_id":"","url":"https://api.github.com/users/toolstack","html_url":"https://github.com/toolstack","followers_url":"https://api.github.com/users/toolstack/followers","following_url":"https://api.github.com/users/toolstack/following{/other_user}","gists_url":"https://api.github.com/users/toolstack/gists{/gist_id}","starred_url":"https://api.github.com/users/toolstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolstack/subscriptions","organizations_url":"https://api.github.com/users/toolstack/orgs","repos_url":"https://api.github.com/users/toolstack/repos","events_url":"https://api.github.com/users/toolstack/events{/privacy}","received_events_url":"https://api.github.com/users/toolstack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-18T17:20:38Z","updated_at":"2015-08-01T19:15:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/donatj/PhpUserAgent/pulls/27","html_url":"https://github.com/donatj/PhpUserAgent/pull/27","diff_url":"https://github.com/donatj/PhpUserAgent/pull/27.diff","patch_url":"https://github.com/donatj/PhpUserAgent/pull/27.patch"},"body":"I have several user's getting error messages from PHP 5.4 about the anonymous function call for the $find function.  Some users are using eAccelerator (which is broken and a dead project) some say they are not.\r\n\r\nAs it's not really required and in fact adds overhead, this change removes it's use.\r\n\r\nThis change also removes the strtolower() call for the search term (it's always a hard coded string so I just manually lowered the strings) and only calls strtolower() once for the results array (instead of on each call to $find)."},"comment":{"url":"https://api.github.com/repos/donatj/PhpUserAgent/issues/comments/126947386","html_url":"https://github.com/donatj/PhpUserAgent/pull/27#issuecomment-126947386","issue_url":"https://api.github.com/repos/donatj/PhpUserAgent/issues/27","id":126947386,"user":{"login":"toolstack","id":9053749,"avatar_url":"https://avatars.githubusercontent.com/u/9053749?v=3","gravatar_id":"","url":"https://api.github.com/users/toolstack","html_url":"https://github.com/toolstack","followers_url":"https://api.github.com/users/toolstack/followers","following_url":"https://api.github.com/users/toolstack/following{/other_user}","gists_url":"https://api.github.com/users/toolstack/gists{/gist_id}","starred_url":"https://api.github.com/users/toolstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolstack/subscriptions","organizations_url":"https://api.github.com/users/toolstack/orgs","repos_url":"https://api.github.com/users/toolstack/repos","events_url":"https://api.github.com/users/toolstack/events{/privacy}","received_events_url":"https://api.github.com/users/toolstack/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T19:15:45Z","updated_at":"2015-08-01T19:15:45Z","body":"No problem, thanks."}}