{"action":"created","issue":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4734","repository_url":"https://api.github.com/repos/bcit-ci/CodeIgniter","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4734/labels{/name}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4734/comments","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4734/events","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/4734","id":168001704,"number":4734,"title":"an Notice error on php v5.6","user":{"login":"yozman","id":11918866,"avatar_url":"https://avatars.githubusercontent.com/u/11918866?v=3","gravatar_id":"","url":"https://api.github.com/users/yozman","html_url":"https://github.com/yozman","followers_url":"https://api.github.com/users/yozman/followers","following_url":"https://api.github.com/users/yozman/following{/other_user}","gists_url":"https://api.github.com/users/yozman/gists{/gist_id}","starred_url":"https://api.github.com/users/yozman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yozman/subscriptions","organizations_url":"https://api.github.com/users/yozman/orgs","repos_url":"https://api.github.com/users/yozman/repos","events_url":"https://api.github.com/users/yozman/events{/privacy}","received_events_url":"https://api.github.com/users/yozman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-28T02:38:30Z","updated_at":"2016-07-30T12:12:58Z","closed_at":null,"body":"`/system/core/Loader.php`\r\n\r\non line `1405`\r\n\r\n```\r\nprotected function &_ci_get_component($component)\r\n{\r\n    $CI =& get_instance();\r\n    return $CI->$component;\r\n}\r\n```\r\n\r\nshould change to\r\n\r\n```\r\nprotected function &_ci_get_component($component)\r\n{\r\n    $CI =& get_instance();\r\n    $component = $CI->$component;\r\n    return $component;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/comments/236362046","html_url":"https://github.com/bcit-ci/CodeIgniter/issues/4734#issuecomment-236362046","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/4734","id":236362046,"user":{"login":"yozman","id":11918866,"avatar_url":"https://avatars.githubusercontent.com/u/11918866?v=3","gravatar_id":"","url":"https://api.github.com/users/yozman","html_url":"https://github.com/yozman","followers_url":"https://api.github.com/users/yozman/followers","following_url":"https://api.github.com/users/yozman/following{/other_user}","gists_url":"https://api.github.com/users/yozman/gists{/gist_id}","starred_url":"https://api.github.com/users/yozman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yozman/subscriptions","organizations_url":"https://api.github.com/users/yozman/orgs","repos_url":"https://api.github.com/users/yozman/repos","events_url":"https://api.github.com/users/yozman/events{/privacy}","received_events_url":"https://api.github.com/users/yozman/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T12:12:58Z","updated_at":"2016-07-30T12:12:58Z","body":"@narfbg\r\n\r\nwhen I want to use\r\n`$this->load->add_package_path()`\r\non PHP 5.6 with `error_reporting(-1)`\r\n\r\nthere is a Notice\r\n```\r\nA PHP Error was encountered\r\n\r\nSeverity: Notice\r\n\r\nMessage: Only variable references should be returned by reference\r\n\r\nFilename: core/Loader.php\r\n\r\nLine Number: 1405\r\n\r\nBacktrace:\r\n\r\nFile: C:\\Users\\flyboy\\Documents\\GitHub\\sinoci\\app\\Models\\Site\\ShowWelcome.php\r\nLine: 11\r\nFunction: add_package_path\r\n```\r\n\r\nthen I find the way to fix it:\r\nchange `/system/core/Loader.php`\r\non line `1405`\r\n\r\n```\r\nprotected function &_ci_get_component($component)\r\n{\r\n    $CI =& get_instance();\r\n    return $CI->$component;\r\n}\r\n```\r\n\r\nshould be\r\n\r\n```\r\nprotected function &_ci_get_component($component)\r\n{\r\n    $CI =& get_instance();\r\n    $component = $CI->$component;\r\n    return $component;\r\n}\r\n```"}}
{"actor":{"display_login":"yozman"}}