{"action":"created","issue":{"url":"https://api.github.com/repos/paragonie/random_compat/issues/115","repository_url":"https://api.github.com/repos/paragonie/random_compat","labels_url":"https://api.github.com/repos/paragonie/random_compat/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/paragonie/random_compat/issues/115/comments","events_url":"https://api.github.com/repos/paragonie/random_compat/issues/115/events","html_url":"https://github.com/paragonie/random_compat/issues/115","id":174158453,"number":115,"title":"PHP linting problem when using PHP 7.","user":{"login":"Otto42","id":889736,"avatar_url":"https://avatars.githubusercontent.com/u/889736?v=3","gravatar_id":"","url":"https://api.github.com/users/Otto42","html_url":"https://github.com/Otto42","followers_url":"https://api.github.com/users/Otto42/followers","following_url":"https://api.github.com/users/Otto42/following{/other_user}","gists_url":"https://api.github.com/users/Otto42/gists{/gist_id}","starred_url":"https://api.github.com/users/Otto42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otto42/subscriptions","organizations_url":"https://api.github.com/users/Otto42/orgs","repos_url":"https://api.github.com/users/Otto42/repos","events_url":"https://api.github.com/users/Otto42/events{/privacy}","received_events_url":"https://api.github.com/users/Otto42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-31T00:37:42Z","updated_at":"2016-10-13T23:39:08Z","closed_at":null,"body":"Some people want to write their code for a variety of systems, running a variety of PHP versions. This is exactly what this library is made for, to provide a backwards compatible way to generate random numbers.\r\n\r\nHowever, if you do any kind of automatic linting to check for errors, then all the various random_bytes_* files will throw an error if you're using PHP 7 to do that linting. The specific error it will throw looks like this:\r\n\r\nFatal error: Cannot redeclare random_bytes() in .../random_compat/lib/random_bytes_com_dotnet.php on line 81.\r\n\r\n..and similar.\r\n\r\nSuggest that all these functions be wrapped in function_exists checks, or something equivalent, to prevent PHP 7's Lint process (php -l) from marking these as errors, even though they would not actually be used on a PHP 7 installation.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/paragonie/random_compat/issues/comments/253670745","html_url":"https://github.com/paragonie/random_compat/issues/115#issuecomment-253670745","issue_url":"https://api.github.com/repos/paragonie/random_compat/issues/115","id":253670745,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T23:39:08Z","updated_at":"2016-10-13T23:39:08Z","body":"👎 "}}
{"actor":{"display_login":"GrahamCampbell"}}