{"action":"created","issue":{"url":"https://api.github.com/repos/php/php-src/issues/1290","labels_url":"https://api.github.com/repos/php/php-src/issues/1290/labels{/name}","comments_url":"https://api.github.com/repos/php/php-src/issues/1290/comments","events_url":"https://api.github.com/repos/php/php-src/issues/1290/events","html_url":"https://github.com/php/php-src/pull/1290","id":78541128,"number":1290,"title":"Request #69654: Add E_DEBUG and E_USER_DEBUG constants","user":{"login":"bzick","id":345384,"avatar_url":"https://avatars.githubusercontent.com/u/345384?v=3","gravatar_id":"","url":"https://api.github.com/users/bzick","html_url":"https://github.com/bzick","followers_url":"https://api.github.com/users/bzick/followers","following_url":"https://api.github.com/users/bzick/following{/other_user}","gists_url":"https://api.github.com/users/bzick/gists{/gist_id}","starred_url":"https://api.github.com/users/bzick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzick/subscriptions","organizations_url":"https://api.github.com/users/bzick/orgs","repos_url":"https://api.github.com/users/bzick/repos","events_url":"https://api.github.com/users/bzick/events{/privacy}","received_events_url":"https://api.github.com/users/bzick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/php/php-src/labels/RFC","name":"RFC","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-20T14:10:02Z","updated_at":"2015-05-21T10:14:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/php/php-src/pulls/1290","html_url":"https://github.com/php/php-src/pull/1290","diff_url":"https://github.com/php/php-src/pull/1290.diff","patch_url":"https://github.com/php/php-src/pull/1290.patch"},"body":"Pull request for [request #69654](https://bugs.php.net/bug.php?id=69654).\r\nAll loggers and project has [DEBUG] mode. Using E_NOTICE as debug identification is incorrect  for dev-messages because in production dev-message must be ignoring and in dev-mode all messages (notices and debugs) mixed in mess.  \r\n\r\nSome extensions can use the constant E_DEBUG in their dev-messages. For example, MongoLog use E_NOTICE for debugging. It is not convenient. Zend Engine  in dev-mode can use E_DEBUG and generate dev-message (we can get stack trace of memory leak messages).\r\n\r\nFor example\r\n```php\r\ntrigger_error(\"Connection to DB established\", E_USER_DEBUG);\r\n```\r\ngenerates debug message\r\n\r\n```\r\nDebug: Connection to DB established in ...\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/php/php-src/issues/comments/104213045","html_url":"https://github.com/php/php-src/pull/1290#issuecomment-104213045","issue_url":"https://api.github.com/repos/php/php-src/issues/1290","id":104213045,"user":{"login":"nik045","id":12291935,"avatar_url":"https://avatars.githubusercontent.com/u/12291935?v=3","gravatar_id":"","url":"https://api.github.com/users/nik045","html_url":"https://github.com/nik045","followers_url":"https://api.github.com/users/nik045/followers","following_url":"https://api.github.com/users/nik045/following{/other_user}","gists_url":"https://api.github.com/users/nik045/gists{/gist_id}","starred_url":"https://api.github.com/users/nik045/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik045/subscriptions","organizations_url":"https://api.github.com/users/nik045/orgs","repos_url":"https://api.github.com/users/nik045/repos","events_url":"https://api.github.com/users/nik045/events{/privacy}","received_events_url":"https://api.github.com/users/nik045/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T10:14:45Z","updated_at":"2015-05-21T10:14:45Z","body":":+1: "}}