{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls/2","id":58584572,"html_url":"https://github.com/rbcpl/CodeIgniter/pull/2","diff_url":"https://github.com/rbcpl/CodeIgniter/pull/2.diff","patch_url":"https://github.com/rbcpl/CodeIgniter/pull/2.patch","issue_url":"https://api.github.com/repos/rbcpl/CodeIgniter/issues/2","number":2,"state":"open","locked":false,"title":"Fix inconsitency in library loader","user":{"login":"rbcpl","id":17065710,"avatar_url":"https://avatars.githubusercontent.com/u/17065710?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcpl","html_url":"https://github.com/rbcpl","followers_url":"https://api.github.com/users/rbcpl/followers","following_url":"https://api.github.com/users/rbcpl/following{/other_user}","gists_url":"https://api.github.com/users/rbcpl/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcpl/subscriptions","organizations_url":"https://api.github.com/users/rbcpl/orgs","repos_url":"https://api.github.com/users/rbcpl/repos","events_url":"https://api.github.com/users/rbcpl/events{/privacy}","received_events_url":"https://api.github.com/users/rbcpl/received_events","type":"User","site_admin":false},"body":"When loading a library, CodeIgniter shows inconsistent behaviour when assigning the property name:\r\n\r\n```\r\n\r\nclass Tests extends CI_Controller {\r\n    \r\n    public function __construct() {\r\n        parent::__construct();\r\n    }\r\n    \r\n    public function index() {\r\n        // Model Test.  Model file: application/models/SomeModel.php. Class name: SomeModel\r\n        $this->load->model(\"SomeModel\");\r\n        $this->SomeModel->doSomething();  // Works fine.\r\n        //$this->somemodel->doSomething(); // Does not work as expected.\r\n        \r\n        // Library test. Library file: application/libraries/SomeLibrary.php. Class name: SomeLibrary\r\n        $this->load->library(\"SomeLibrary\");\r\n        $this->SomeLibrary->doSomething();    //  Throws an undefined property exception. However, does work for model classes.\r\n        //$this->somelibrary->doSomething();   //  Does work, although both file and class name are in camel case.\r\n    }\r\n}\r\n\r\n```","created_at":"2016-02-08T09:16:18Z","updated_at":"2016-02-08T09:16:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls/2/commits","review_comments_url":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls/2/comments","review_comment_url":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rbcpl/CodeIgniter/issues/2/comments","statuses_url":"https://api.github.com/repos/rbcpl/CodeIgniter/statuses/dbf5e9c720f8b3396c2ba3091dacddfccdef6f89","head":{"label":"rbcpl:rbcpl-load-library-inconsistency","ref":"rbcpl-load-library-inconsistency","sha":"dbf5e9c720f8b3396c2ba3091dacddfccdef6f89","user":{"login":"rbcpl","id":17065710,"avatar_url":"https://avatars.githubusercontent.com/u/17065710?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcpl","html_url":"https://github.com/rbcpl","followers_url":"https://api.github.com/users/rbcpl/followers","following_url":"https://api.github.com/users/rbcpl/following{/other_user}","gists_url":"https://api.github.com/users/rbcpl/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcpl/subscriptions","organizations_url":"https://api.github.com/users/rbcpl/orgs","repos_url":"https://api.github.com/users/rbcpl/repos","events_url":"https://api.github.com/users/rbcpl/events{/privacy}","received_events_url":"https://api.github.com/users/rbcpl/received_events","type":"User","site_admin":false},"repo":{"id":51076647,"name":"CodeIgniter","full_name":"rbcpl/CodeIgniter","owner":{"login":"rbcpl","id":17065710,"avatar_url":"https://avatars.githubusercontent.com/u/17065710?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcpl","html_url":"https://github.com/rbcpl","followers_url":"https://api.github.com/users/rbcpl/followers","following_url":"https://api.github.com/users/rbcpl/following{/other_user}","gists_url":"https://api.github.com/users/rbcpl/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcpl/subscriptions","organizations_url":"https://api.github.com/users/rbcpl/orgs","repos_url":"https://api.github.com/users/rbcpl/repos","events_url":"https://api.github.com/users/rbcpl/events{/privacy}","received_events_url":"https://api.github.com/users/rbcpl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rbcpl/CodeIgniter","description":"Open Source PHP Framework (originally from EllisLab)","fork":true,"url":"https://api.github.com/repos/rbcpl/CodeIgniter","forks_url":"https://api.github.com/repos/rbcpl/CodeIgniter/forks","keys_url":"https://api.github.com/repos/rbcpl/CodeIgniter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rbcpl/CodeIgniter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rbcpl/CodeIgniter/teams","hooks_url":"https://api.github.com/repos/rbcpl/CodeIgniter/hooks","issue_events_url":"https://api.github.com/repos/rbcpl/CodeIgniter/issues/events{/number}","events_url":"https://api.github.com/repos/rbcpl/CodeIgniter/events","assignees_url":"https://api.github.com/repos/rbcpl/CodeIgniter/assignees{/user}","branches_url":"https://api.github.com/repos/rbcpl/CodeIgniter/branches{/branch}","tags_url":"https://api.github.com/repos/rbcpl/CodeIgniter/tags","blobs_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rbcpl/CodeIgniter/statuses/{sha}","languages_url":"https://api.github.com/repos/rbcpl/CodeIgniter/languages","stargazers_url":"https://api.github.com/repos/rbcpl/CodeIgniter/stargazers","contributors_url":"https://api.github.com/repos/rbcpl/CodeIgniter/contributors","subscribers_url":"https://api.github.com/repos/rbcpl/CodeIgniter/subscribers","subscription_url":"https://api.github.com/repos/rbcpl/CodeIgniter/subscription","commits_url":"https://api.github.com/repos/rbcpl/CodeIgniter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rbcpl/CodeIgniter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rbcpl/CodeIgniter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rbcpl/CodeIgniter/contents/{+path}","compare_url":"https://api.github.com/repos/rbcpl/CodeIgniter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rbcpl/CodeIgniter/merges","archive_url":"https://api.github.com/repos/rbcpl/CodeIgniter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rbcpl/CodeIgniter/downloads","issues_url":"https://api.github.com/repos/rbcpl/CodeIgniter/issues{/number}","pulls_url":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls{/number}","milestones_url":"https://api.github.com/repos/rbcpl/CodeIgniter/milestones{/number}","notifications_url":"https://api.github.com/repos/rbcpl/CodeIgniter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rbcpl/CodeIgniter/labels{/name}","releases_url":"https://api.github.com/repos/rbcpl/CodeIgniter/releases{/id}","deployments_url":"https://api.github.com/repos/rbcpl/CodeIgniter/deployments","created_at":"2016-02-04T13:10:01Z","updated_at":"2016-02-04T13:10:04Z","pushed_at":"2016-02-08T09:15:55Z","git_url":"git://github.com/rbcpl/CodeIgniter.git","ssh_url":"git@github.com:rbcpl/CodeIgniter.git","clone_url":"https://github.com/rbcpl/CodeIgniter.git","svn_url":"https://github.com/rbcpl/CodeIgniter","homepage":"https://codeigniter.com/","size":41739,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"rbcpl:develop","ref":"develop","sha":"e54c461d77ffce9f10999ca51bb2e3932304639b","user":{"login":"rbcpl","id":17065710,"avatar_url":"https://avatars.githubusercontent.com/u/17065710?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcpl","html_url":"https://github.com/rbcpl","followers_url":"https://api.github.com/users/rbcpl/followers","following_url":"https://api.github.com/users/rbcpl/following{/other_user}","gists_url":"https://api.github.com/users/rbcpl/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcpl/subscriptions","organizations_url":"https://api.github.com/users/rbcpl/orgs","repos_url":"https://api.github.com/users/rbcpl/repos","events_url":"https://api.github.com/users/rbcpl/events{/privacy}","received_events_url":"https://api.github.com/users/rbcpl/received_events","type":"User","site_admin":false},"repo":{"id":51076647,"name":"CodeIgniter","full_name":"rbcpl/CodeIgniter","owner":{"login":"rbcpl","id":17065710,"avatar_url":"https://avatars.githubusercontent.com/u/17065710?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcpl","html_url":"https://github.com/rbcpl","followers_url":"https://api.github.com/users/rbcpl/followers","following_url":"https://api.github.com/users/rbcpl/following{/other_user}","gists_url":"https://api.github.com/users/rbcpl/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcpl/subscriptions","organizations_url":"https://api.github.com/users/rbcpl/orgs","repos_url":"https://api.github.com/users/rbcpl/repos","events_url":"https://api.github.com/users/rbcpl/events{/privacy}","received_events_url":"https://api.github.com/users/rbcpl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rbcpl/CodeIgniter","description":"Open Source PHP Framework (originally from EllisLab)","fork":true,"url":"https://api.github.com/repos/rbcpl/CodeIgniter","forks_url":"https://api.github.com/repos/rbcpl/CodeIgniter/forks","keys_url":"https://api.github.com/repos/rbcpl/CodeIgniter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rbcpl/CodeIgniter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rbcpl/CodeIgniter/teams","hooks_url":"https://api.github.com/repos/rbcpl/CodeIgniter/hooks","issue_events_url":"https://api.github.com/repos/rbcpl/CodeIgniter/issues/events{/number}","events_url":"https://api.github.com/repos/rbcpl/CodeIgniter/events","assignees_url":"https://api.github.com/repos/rbcpl/CodeIgniter/assignees{/user}","branches_url":"https://api.github.com/repos/rbcpl/CodeIgniter/branches{/branch}","tags_url":"https://api.github.com/repos/rbcpl/CodeIgniter/tags","blobs_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rbcpl/CodeIgniter/statuses/{sha}","languages_url":"https://api.github.com/repos/rbcpl/CodeIgniter/languages","stargazers_url":"https://api.github.com/repos/rbcpl/CodeIgniter/stargazers","contributors_url":"https://api.github.com/repos/rbcpl/CodeIgniter/contributors","subscribers_url":"https://api.github.com/repos/rbcpl/CodeIgniter/subscribers","subscription_url":"https://api.github.com/repos/rbcpl/CodeIgniter/subscription","commits_url":"https://api.github.com/repos/rbcpl/CodeIgniter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rbcpl/CodeIgniter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rbcpl/CodeIgniter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rbcpl/CodeIgniter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rbcpl/CodeIgniter/contents/{+path}","compare_url":"https://api.github.com/repos/rbcpl/CodeIgniter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rbcpl/CodeIgniter/merges","archive_url":"https://api.github.com/repos/rbcpl/CodeIgniter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rbcpl/CodeIgniter/downloads","issues_url":"https://api.github.com/repos/rbcpl/CodeIgniter/issues{/number}","pulls_url":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls{/number}","milestones_url":"https://api.github.com/repos/rbcpl/CodeIgniter/milestones{/number}","notifications_url":"https://api.github.com/repos/rbcpl/CodeIgniter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rbcpl/CodeIgniter/labels{/name}","releases_url":"https://api.github.com/repos/rbcpl/CodeIgniter/releases{/id}","deployments_url":"https://api.github.com/repos/rbcpl/CodeIgniter/deployments","created_at":"2016-02-04T13:10:01Z","updated_at":"2016-02-04T13:10:04Z","pushed_at":"2016-02-08T09:15:55Z","git_url":"git://github.com/rbcpl/CodeIgniter.git","ssh_url":"git@github.com:rbcpl/CodeIgniter.git","clone_url":"https://github.com/rbcpl/CodeIgniter.git","svn_url":"https://github.com/rbcpl/CodeIgniter","homepage":"https://codeigniter.com/","size":41739,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls/2"},"html":{"href":"https://github.com/rbcpl/CodeIgniter/pull/2"},"issue":{"href":"https://api.github.com/repos/rbcpl/CodeIgniter/issues/2"},"comments":{"href":"https://api.github.com/repos/rbcpl/CodeIgniter/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rbcpl/CodeIgniter/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/rbcpl/CodeIgniter/statuses/dbf5e9c720f8b3396c2ba3091dacddfccdef6f89"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}