{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii/issues/3914","labels_url":"https://api.github.com/repos/yiisoft/yii/issues/3914/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii/issues/3914/comments","events_url":"https://api.github.com/repos/yiisoft/yii/issues/3914/events","html_url":"https://github.com/yiisoft/yii/issues/3914","id":97798223,"number":3914,"title":"Internal error while generating hash with CPasswordHelper::hashPassword()","user":{"login":"NabiKAZ","id":246721,"avatar_url":"https://avatars.githubusercontent.com/u/246721?v=3","gravatar_id":"","url":"https://api.github.com/users/NabiKAZ","html_url":"https://github.com/NabiKAZ","followers_url":"https://api.github.com/users/NabiKAZ/followers","following_url":"https://api.github.com/users/NabiKAZ/following{/other_user}","gists_url":"https://api.github.com/users/NabiKAZ/gists{/gist_id}","starred_url":"https://api.github.com/users/NabiKAZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NabiKAZ/subscriptions","organizations_url":"https://api.github.com/users/NabiKAZ/orgs","repos_url":"https://api.github.com/users/NabiKAZ/repos","events_url":"https://api.github.com/users/NabiKAZ/events{/privacy}","received_events_url":"https://api.github.com/users/NabiKAZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T20:44:39Z","updated_at":"2015-07-28T20:47:33Z","closed_at":"2015-07-28T20:47:33Z","body":"@samdark \r\n\r\nI use PHP 5.3.6 on Windows with Yii 1.1.16\r\nWhen I use `CPasswordHelper::hashPassword()`, I get this error:\r\n```\r\nCException\r\nInternal error while generating hash.\r\n\\framework\\utils\\CPasswordHelper.php(97)\r\n```\r\nBut with Yii 1.1.15 well all done.\r\nSeem you use of `$2y$` instead `$2a$` in `generateSalt()` in 1.1.16 version.\r\nI check this feature in [crypt PHP function](http://php.net/manual/en/function.crypt.php), and see wrote:\r\n>... developers targeting only PHP 5.3.7 and later should use \"$2y$\" in preference to \"$2a$\".\r\n\r\nNow I have problem with `$2y$` in Yii 1.1.16 on PHP 5.3.6\r\nBut there is not any problem with `$2a$` in Yii 1.1.15 version.\r\nDo you thinks is it a bug? :boom:\r\nAnd so what's your solution for use `CPasswordHelper::hashPassword()` of Yii 1.1.16 on PHP 5.3.6\r\n\r\nNow there is a big notice, seen Yii 1.1.16 requirement for `hashPassword()` is PHP **5.3.7** but in the official site wrote: Requirement PHP 5.1.0 or above. Why?!\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii/issues/comments/125749993","html_url":"https://github.com/yiisoft/yii/issues/3914#issuecomment-125749993","issue_url":"https://api.github.com/repos/yiisoft/yii/issues/3914","id":125749993,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T20:47:33Z","updated_at":"2015-07-28T20:47:33Z","body":"Time to upgrade PHP."}}