{"action":"created","issue":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/3278","labels_url":"https://api.github.com/repos/concrete5/concrete5/issues/3278/labels{/name}","comments_url":"https://api.github.com/repos/concrete5/concrete5/issues/3278/comments","events_url":"https://api.github.com/repos/concrete5/concrete5/issues/3278/events","html_url":"https://github.com/concrete5/concrete5/issues/3278","id":124877413,"number":3278,"title":"Using $session = new Session(); in a block controller function in PHP5.3 throws error","user":{"login":"Mesuva","id":1079600,"avatar_url":"https://avatars.githubusercontent.com/u/1079600?v=3","gravatar_id":"","url":"https://api.github.com/users/Mesuva","html_url":"https://github.com/Mesuva","followers_url":"https://api.github.com/users/Mesuva/followers","following_url":"https://api.github.com/users/Mesuva/following{/other_user}","gists_url":"https://api.github.com/users/Mesuva/gists{/gist_id}","starred_url":"https://api.github.com/users/Mesuva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mesuva/subscriptions","organizations_url":"https://api.github.com/users/Mesuva/orgs","repos_url":"https://api.github.com/users/Mesuva/repos","events_url":"https://api.github.com/users/Mesuva/events{/privacy}","received_events_url":"https://api.github.com/users/Mesuva/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-05T01:44:27Z","updated_at":"2016-01-06T14:25:12Z","closed_at":"2016-01-05T02:08:24Z","body":"Error thrown is:\r\nFailed to start the session: already started by PHP ($_SESSION is set).\r\n\r\nErrors do not occur with PHP5.4+\r\n\r\nExample where sessions have been used and this happens is the controller here:\r\nhttps://github.com/Mesuva/msv_code_display/blob/master/blocks/msv_code_display/controller.php\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/comments/169335276","html_url":"https://github.com/concrete5/concrete5/issues/3278#issuecomment-169335276","issue_url":"https://api.github.com/repos/concrete5/concrete5/issues/3278","id":169335276,"user":{"login":"aembler","id":527809,"avatar_url":"https://avatars.githubusercontent.com/u/527809?v=3","gravatar_id":"","url":"https://api.github.com/users/aembler","html_url":"https://github.com/aembler","followers_url":"https://api.github.com/users/aembler/followers","following_url":"https://api.github.com/users/aembler/following{/other_user}","gists_url":"https://api.github.com/users/aembler/gists{/gist_id}","starred_url":"https://api.github.com/users/aembler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aembler/subscriptions","organizations_url":"https://api.github.com/users/aembler/orgs","repos_url":"https://api.github.com/users/aembler/repos","events_url":"https://api.github.com/users/aembler/events{/privacy}","received_events_url":"https://api.github.com/users/aembler/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T14:25:12Z","updated_at":"2016-01-06T14:25:12Z","body":"Additionally, since the Symfony request obect ($this->request) in this case has getSession() available to it you could call $this->request->getSession() to access to the session as well. "}}