{"action":"created","issue":{"url":"https://api.github.com/repos/philios33/PHP-AES-File-Encryption/issues/3","repository_url":"https://api.github.com/repos/philios33/PHP-AES-File-Encryption","labels_url":"https://api.github.com/repos/philios33/PHP-AES-File-Encryption/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/philios33/PHP-AES-File-Encryption/issues/3/comments","events_url":"https://api.github.com/repos/philios33/PHP-AES-File-Encryption/issues/3/events","html_url":"https://github.com/philios33/PHP-AES-File-Encryption/issues/3","id":130167540,"number":3,"title":"hex2bin unknown method","user":{"login":"havet","id":7511145,"avatar_url":"https://avatars.githubusercontent.com/u/7511145?v=3","gravatar_id":"","url":"https://api.github.com/users/havet","html_url":"https://github.com/havet","followers_url":"https://api.github.com/users/havet/followers","following_url":"https://api.github.com/users/havet/following{/other_user}","gists_url":"https://api.github.com/users/havet/gists{/gist_id}","starred_url":"https://api.github.com/users/havet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havet/subscriptions","organizations_url":"https://api.github.com/users/havet/orgs","repos_url":"https://api.github.com/users/havet/repos","events_url":"https://api.github.com/users/havet/events{/privacy}","received_events_url":"https://api.github.com/users/havet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-31T18:54:00Z","updated_at":"2016-06-22T09:36:32Z","closed_at":null,"body":"Hi,\r\nI cannot run 'example_usage.php'\r\nFatal error: Call to undefined method AESCryptFileLib::hex2bin() in .... /AESCryptFileLib.php on line 573\r\n\r\nI'm running PHP v. 5.6.7\r\n"},"comment":{"url":"https://api.github.com/repos/philios33/PHP-AES-File-Encryption/issues/comments/227692778","html_url":"https://github.com/philios33/PHP-AES-File-Encryption/issues/3#issuecomment-227692778","issue_url":"https://api.github.com/repos/philios33/PHP-AES-File-Encryption/issues/3","id":227692778,"user":{"login":"nbatteur","id":20087002,"avatar_url":"https://avatars.githubusercontent.com/u/20087002?v=3","gravatar_id":"","url":"https://api.github.com/users/nbatteur","html_url":"https://github.com/nbatteur","followers_url":"https://api.github.com/users/nbatteur/followers","following_url":"https://api.github.com/users/nbatteur/following{/other_user}","gists_url":"https://api.github.com/users/nbatteur/gists{/gist_id}","starred_url":"https://api.github.com/users/nbatteur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbatteur/subscriptions","organizations_url":"https://api.github.com/users/nbatteur/orgs","repos_url":"https://api.github.com/users/nbatteur/repos","events_url":"https://api.github.com/users/nbatteur/events{/privacy}","received_events_url":"https://api.github.com/users/nbatteur/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T09:36:32Z","updated_at":"2016-06-22T09:36:32Z","body":"Hi,\r\n\r\nI modified the function as follows:\r\n`        // hex2bin wasn't introduced until PHP 5.4.0. If not present, use an alternative\r\n        // written by chaos79: http://php.net/manual/fr/function.bin2hex.php#86123\r\n        public static function hex2bin($string) {\r\n                if (function_exists('hex2bin')) {\r\n                        return hex2bin($string);\r\n                } else {\r\n                        $sbin = \"\";\r\n                        $len = strlen( $string );\r\n                        for ( $i = 0; $i < $len; $i += 2 ) {\r\n                                $sbin .= chr( hexdec( $string{$i}.$string{( $i+1 )} ) );\r\n                        }\r\n                        return $sbin;\r\n                }\r\n        }\r\n`\r\nNow it's work fine."}}
{"actor":{"display_login":"nbatteur"}}