{"action":"created","issue":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/11129","labels_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11129/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11129/comments","events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11129/events","html_url":"https://github.com/phalcon/cphalcon/issues/11129","id":116719766,"number":11129,"title":"Phalcon PHP 2.0.8 uses PHP5.4 methods","user":{"login":"devaddiction","id":1707308,"avatar_url":"https://avatars.githubusercontent.com/u/1707308?v=3","gravatar_id":"","url":"https://api.github.com/users/devaddiction","html_url":"https://github.com/devaddiction","followers_url":"https://api.github.com/users/devaddiction/followers","following_url":"https://api.github.com/users/devaddiction/following{/other_user}","gists_url":"https://api.github.com/users/devaddiction/gists{/gist_id}","starred_url":"https://api.github.com/users/devaddiction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devaddiction/subscriptions","organizations_url":"https://api.github.com/users/devaddiction/orgs","repos_url":"https://api.github.com/users/devaddiction/repos","events_url":"https://api.github.com/users/devaddiction/events{/privacy}","received_events_url":"https://api.github.com/users/devaddiction/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sergeyklay","id":1256298,"avatar_url":"https://avatars.githubusercontent.com/u/1256298?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeyklay","html_url":"https://github.com/sergeyklay","followers_url":"https://api.github.com/users/sergeyklay/followers","following_url":"https://api.github.com/users/sergeyklay/following{/other_user}","gists_url":"https://api.github.com/users/sergeyklay/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyklay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyklay/subscriptions","organizations_url":"https://api.github.com/users/sergeyklay/orgs","repos_url":"https://api.github.com/users/sergeyklay/repos","events_url":"https://api.github.com/users/sergeyklay/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyklay/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-11-13T07:53:24Z","updated_at":"2015-12-16T22:23:58Z","closed_at":null,"body":"Phalcon PHP 2.0.8 session Adapter now uses methods that were introduced in PHP5.4, like session_status().\r\n\r\nThis update makes Phalcon PHP 2.0.8 unsupported for PHP 5.3.\r\n\r\nZephir source code seems that checks the PHP version but actually it doesn't work.\r\n\r\n```php\r\n\t/**\r\n\t * Returns the status of the current session. For PHP 5.3 this function will always return SESSION_NONE\r\n\t *\r\n\t *<code>\r\n\t *\tvar_dump($session->status());\r\n\t *\r\n\t *  // PHP 5.4 and above will give meaningful messages, 5.3 gets SESSION_NONE always\r\n\t *  if ($session->status() !== $session::SESSION_ACTIVE) {\r\n\t *      $session->start();\r\n\t *  }\r\n\t *</code>\r\n\t */\r\n\tpublic function status() -> int\r\n\t{\r\n\t\tvar status;\r\n\r\n\t\tif !is_php_version(\"5.3\") {\r\n\t\t\tlet status = session_status();\r\n\r\n\t\t\tswitch status {\r\n\t\t\t\tcase PHP_SESSION_DISABLED:\r\n\t\t\t\t\treturn self::SESSION_DISABLED;\r\n\r\n\t\t\t\tcase PHP_SESSION_ACTIVE:\r\n\t\t\t\t\treturn self::SESSION_ACTIVE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn self::SESSION_NONE;\r\n\t}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/phalcon/cphalcon/issues/comments/165272959","html_url":"https://github.com/phalcon/cphalcon/issues/11129#issuecomment-165272959","issue_url":"https://api.github.com/repos/phalcon/cphalcon/issues/11129","id":165272959,"user":{"login":"sergeyklay","id":1256298,"avatar_url":"https://avatars.githubusercontent.com/u/1256298?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeyklay","html_url":"https://github.com/sergeyklay","followers_url":"https://api.github.com/users/sergeyklay/followers","following_url":"https://api.github.com/users/sergeyklay/following{/other_user}","gists_url":"https://api.github.com/users/sergeyklay/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyklay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyklay/subscriptions","organizations_url":"https://api.github.com/users/sergeyklay/orgs","repos_url":"https://api.github.com/users/sergeyklay/repos","events_url":"https://api.github.com/users/sergeyklay/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyklay/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T22:23:58Z","updated_at":"2015-12-16T22:23:58Z","body":"@devaddiction "}}