{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/7855","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/7855/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/7855/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/7855/events","html_url":"https://github.com/yiisoft/yii2/issues/7855","id":63964750,"number":7855,"title":"PHP Warning – yii\\base\\ErrorException  register_shutdown_function(): Invalid shutdown callback '' passed","user":{"login":"JiangYahui","id":4597456,"avatar_url":"https://avatars.githubusercontent.com/u/4597456?v=3","gravatar_id":"","url":"https://api.github.com/users/JiangYahui","html_url":"https://github.com/JiangYahui","followers_url":"https://api.github.com/users/JiangYahui/followers","following_url":"https://api.github.com/users/JiangYahui/following{/other_user}","gists_url":"https://api.github.com/users/JiangYahui/gists{/gist_id}","starred_url":"https://api.github.com/users/JiangYahui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JiangYahui/subscriptions","organizations_url":"https://api.github.com/users/JiangYahui/orgs","repos_url":"https://api.github.com/users/JiangYahui/repos","events_url":"https://api.github.com/users/JiangYahui/events{/privacy}","received_events_url":"https://api.github.com/users/JiangYahui/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:need%20more%20info","name":"status:need more info","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/9","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.x","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/9/labels","id":831720,"number":9,"title":"2.0.x","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":349,"closed_issues":6,"state":"open","created_at":"2014-10-19T13:49:45Z","updated_at":"2015-04-08T08:39:20Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-03-24T10:41:09Z","updated_at":"2015-04-08T14:24:49Z","closed_at":null,"body":"register_shutdown_function(): Invalid shutdown callback '' passed\r\n1. in /usr/local/nginx/tcms/vendor/yiisoft/yii2/log/Logger.php\r\n\r\n    /**\r\n     * Initializes the logger by registering [[flush()]] as a shutdown function.\r\n     */\r\n    public function init()\r\n    {\r\n        parent::init();\r\n        register_shutdown_function(function () {\r\n            // make sure \"flush()\" is called last when there are multiple shutdown functions\r\n            register_shutdown_function([$this, 'flush'], true);\r\n        });\r\n    }\r\n \r\n    /**\r\n     * Logs a message with the given type and category.\r\n     * If [[traceLevel]] is greater than 0, additional call stack information about\r\n     * the application code will be logged as well.\r\n     * @param string|array $message the message to be logged. This can be a simple string or a more\r\n     * complex data structure that will be handled by a [[Target|log target]].\r\n     * @param integer $level the level of the message. This must be one of the following:"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/90931705","html_url":"https://github.com/yiisoft/yii2/issues/7855#issuecomment-90931705","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/7855","id":90931705,"user":{"login":"qvink","id":3198081,"avatar_url":"https://avatars.githubusercontent.com/u/3198081?v=3","gravatar_id":"","url":"https://api.github.com/users/qvink","html_url":"https://github.com/qvink","followers_url":"https://api.github.com/users/qvink/followers","following_url":"https://api.github.com/users/qvink/following{/other_user}","gists_url":"https://api.github.com/users/qvink/gists{/gist_id}","starred_url":"https://api.github.com/users/qvink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qvink/subscriptions","organizations_url":"https://api.github.com/users/qvink/orgs","repos_url":"https://api.github.com/users/qvink/repos","events_url":"https://api.github.com/users/qvink/events{/privacy}","received_events_url":"https://api.github.com/users/qvink/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T14:24:49Z","updated_at":"2015-04-08T14:24:49Z","body":"@samdark  \r\n\r\nand debug_backtrace() result : \r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/base/Object.php\r\n    [line] => 107\r\n    [function] => init\r\n    [class] => yii\\log\\Logger\r\n    [object] => yii\\log\\Logger Object\r\n        (\r\n            [messages] => Array\r\n                (\r\n                )\r\n\r\n            [flushInterval] => 1000\r\n            [traceLevel] => 0\r\n            [dispatcher] => \r\n            [_events:yii\\base\\Component:private] => Array\r\n                (\r\n                )\r\n\r\n            [_behaviors:yii\\base\\Component:private] => \r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [function] => __construct\r\n    [class] => yii\\base\\Object\r\n    [object] => yii\\log\\Logger Object\r\n        (\r\n            [messages] => Array\r\n                (\r\n                )\r\n\r\n            [flushInterval] => 1000\r\n            [traceLevel] => 0\r\n            [dispatcher] => \r\n            [_events:yii\\base\\Component:private] => Array\r\n                (\r\n                )\r\n\r\n            [_behaviors:yii\\base\\Component:private] => \r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n            [0] => Array\r\n                (\r\n                )\r\n\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/di/Container.php\r\n    [line] => 366\r\n    [function] => newInstanceArgs\r\n    [class] => ReflectionClass\r\n    [object] => ReflectionClass Object\r\n        (\r\n            [name] => yii\\log\\Logger\r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n            [0] => Array\r\n                (\r\n                    [0] => Array\r\n                        (\r\n                        )\r\n\r\n                )\r\n\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/di/Container.php\r\n    [line] => 151\r\n    [function] => build\r\n    [class] => yii\\di\\Container\r\n    [object] => yii\\di\\Container Object\r\n        (\r\n            [_singletons:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_definitions:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_params:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_reflections:yii\\di\\Container:private] => Array\r\n                (\r\n                    [yii\\web\\ErrorHandler] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\web\\ErrorHandler\r\n                        )\r\n\r\n                    [yii\\web\\Request] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\web\\Request\r\n                        )\r\n\r\n                    [yii\\log\\Dispatcher] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\log\\Dispatcher\r\n                        )\r\n\r\n                    [yii\\log\\Logger] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\log\\Logger\r\n                        )\r\n\r\n                )\r\n\r\n            [_dependencies:yii\\di\\Container:private] => Array\r\n                (\r\n                    [yii\\web\\ErrorHandler] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\web\\Request] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\log\\Dispatcher] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\log\\Logger] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n            [_events:yii\\base\\Component:private] => Array\r\n                (\r\n                )\r\n\r\n            [_behaviors:yii\\base\\Component:private] => \r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n            [0] => yii\\log\\Logger\r\n            [1] => Array\r\n                (\r\n                )\r\n\r\n            [2] => Array\r\n                (\r\n                )\r\n\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/BaseYii.php\r\n    [line] => 340\r\n    [function] => get\r\n    [class] => yii\\di\\Container\r\n    [object] => yii\\di\\Container Object\r\n        (\r\n            [_singletons:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_definitions:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_params:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_reflections:yii\\di\\Container:private] => Array\r\n                (\r\n                    [yii\\web\\ErrorHandler] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\web\\ErrorHandler\r\n                        )\r\n\r\n                    [yii\\web\\Request] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\web\\Request\r\n                        )\r\n\r\n                    [yii\\log\\Dispatcher] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\log\\Dispatcher\r\n                        )\r\n\r\n                    [yii\\log\\Logger] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\log\\Logger\r\n                        )\r\n\r\n                )\r\n\r\n            [_dependencies:yii\\di\\Container:private] => Array\r\n                (\r\n                    [yii\\web\\ErrorHandler] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\web\\Request] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\log\\Dispatcher] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\log\\Logger] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n            [_events:yii\\base\\Component:private] => Array\r\n                (\r\n                )\r\n\r\n            [_behaviors:yii\\base\\Component:private] => \r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n            [0] => yii\\log\\Logger\r\n            [1] => Array\r\n                (\r\n                )\r\n\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/BaseYii.php\r\n    [line] => 364\r\n    [function] => createObject\r\n    [class] => yii\\BaseYii\r\n    [type] => ::\r\n    [args] => Array\r\n        (\r\n            [0] => yii\\log\\Logger\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/log/Dispatcher.php\r\n    [line] => 115\r\n    [function] => getLogger\r\n    [class] => yii\\BaseYii\r\n    [type] => ::\r\n    [args] => Array\r\n        (\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/log/Dispatcher.php\r\n    [line] => 87\r\n    [function] => getLogger\r\n    [class] => yii\\log\\Dispatcher\r\n    [object] => yii\\log\\Dispatcher Object\r\n        (\r\n            [targets] => Array\r\n                (\r\n                )\r\n\r\n            [_logger:yii\\log\\Dispatcher:private] => \r\n            [_events:yii\\base\\Component:private] => Array\r\n                (\r\n                )\r\n\r\n            [_behaviors:yii\\base\\Component:private] => \r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [function] => __construct\r\n    [class] => yii\\log\\Dispatcher\r\n    [object] => yii\\log\\Dispatcher Object\r\n        (\r\n            [targets] => Array\r\n                (\r\n                )\r\n\r\n            [_logger:yii\\log\\Dispatcher:private] => \r\n            [_events:yii\\base\\Component:private] => Array\r\n                (\r\n                )\r\n\r\n            [_behaviors:yii\\base\\Component:private] => \r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n            [0] => Array\r\n                (\r\n                    [traceLevel] => 3\r\n                    [targets] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                    [class] => yii\\log\\FileTarget\r\n                                    [levels] => Array\r\n                                        (\r\n                                            [0] => error\r\n                                            [1] => warning\r\n                                        )\r\n\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/di/Container.php\r\n    [line] => 372\r\n    [function] => newInstanceArgs\r\n    [class] => ReflectionClass\r\n    [object] => ReflectionClass Object\r\n        (\r\n            [name] => yii\\log\\Dispatcher\r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n            [0] => Array\r\n                (\r\n                    [0] => Array\r\n                        (\r\n                            [traceLevel] => 3\r\n                            [targets] => Array\r\n                                (\r\n                                    [0] => Array\r\n                                        (\r\n                                            [class] => yii\\log\\FileTarget\r\n                                            [levels] => Array\r\n                                                (\r\n                                                    [0] => error\r\n                                                    [1] => warning\r\n                                                )\r\n\r\n                                        )\r\n\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/di/Container.php\r\n    [line] => 151\r\n    [function] => build\r\n    [class] => yii\\di\\Container\r\n    [object] => yii\\di\\Container Object\r\n        (\r\n            [_singletons:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_definitions:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_params:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_reflections:yii\\di\\Container:private] => Array\r\n                (\r\n                    [yii\\web\\ErrorHandler] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\web\\ErrorHandler\r\n                        )\r\n\r\n                    [yii\\web\\Request] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\web\\Request\r\n                        )\r\n\r\n                    [yii\\log\\Dispatcher] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\log\\Dispatcher\r\n                        )\r\n\r\n                    [yii\\log\\Logger] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\log\\Logger\r\n                        )\r\n\r\n                )\r\n\r\n            [_dependencies:yii\\di\\Container:private] => Array\r\n                (\r\n                    [yii\\web\\ErrorHandler] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\web\\Request] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\log\\Dispatcher] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\log\\Logger] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n            [_events:yii\\base\\Component:private] => Array\r\n                (\r\n                )\r\n\r\n            [_behaviors:yii\\base\\Component:private] => \r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n            [0] => yii\\log\\Dispatcher\r\n            [1] => Array\r\n                (\r\n                )\r\n\r\n            [2] => Array\r\n                (\r\n                    [traceLevel] => 3\r\n                    [targets] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                    [class] => yii\\log\\FileTarget\r\n                                    [levels] => Array\r\n                                        (\r\n                                            [0] => error\r\n                                            [1] => warning\r\n                                        )\r\n\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/BaseYii.php\r\n    [line] => 344\r\n    [function] => get\r\n    [class] => yii\\di\\Container\r\n    [object] => yii\\di\\Container Object\r\n        (\r\n            [_singletons:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_definitions:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_params:yii\\di\\Container:private] => Array\r\n                (\r\n                )\r\n\r\n            [_reflections:yii\\di\\Container:private] => Array\r\n                (\r\n                    [yii\\web\\ErrorHandler] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\web\\ErrorHandler\r\n                        )\r\n\r\n                    [yii\\web\\Request] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\web\\Request\r\n                        )\r\n\r\n                    [yii\\log\\Dispatcher] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\log\\Dispatcher\r\n                        )\r\n\r\n                    [yii\\log\\Logger] => ReflectionClass Object\r\n                        (\r\n                            [name] => yii\\log\\Logger\r\n                        )\r\n\r\n                )\r\n\r\n            [_dependencies:yii\\di\\Container:private] => Array\r\n                (\r\n                    [yii\\web\\ErrorHandler] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\web\\Request] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\log\\Dispatcher] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                    [yii\\log\\Logger] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n            [_events:yii\\base\\Component:private] => Array\r\n                (\r\n                )\r\n\r\n            [_behaviors:yii\\base\\Component:private] => \r\n        )\r\n\r\n    [type] => ->\r\n    [args] => Array\r\n        (\r\n            [0] => yii\\log\\Dispatcher\r\n            [1] => Array\r\n                (\r\n                )\r\n\r\n            [2] => Array\r\n                (\r\n                    [traceLevel] => 3\r\n                    [targets] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                    [class] => yii\\log\\FileTarget\r\n                                    [levels] => Array\r\n                                        (\r\n                                            [0] => error\r\n                                            [1] => warning\r\n                                        )\r\n\r\n                                )\r\n\r\n                        )\r\n\r\n                )\r\n\r\n        )\r\n\r\n)\r\n\r\n\r\nArray\r\n(\r\n    [file] => /home/dev/yii2/vendor/yiisoft/yii2/di/ServiceLocator.php\r\n    [line] => 133\r\n    [function] => createObject\r\n    [class] => yii\\BaseYii\r\n    [type] => ::\r\n    [args] => Array\r\n        (\r\n            [0] => Array\r\n                (\r\n                    [traceLevel] => 3\r\n                    [targets] => Array\r\n                        (\r\n                            [0] => Array\r\n                                (\r\n                                    [class] => yii\\log\\FileTarget\r\n                                    [levels] => Array\r\n                                        (\r\n                                            [0] => error\r\n                                            [1] => warning\r\n                                        )\r\n\r\n                                )\r\n\r\n                        )\r\n\r\n                    [class] => yii\\log\\Dispatcher\r\n                )\r\n\r\n        )\r\n)\r\n\r\n....need more info ?"}}