{"action":"created","issue":{"url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/997","labels_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/997/labels{/name}","comments_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/997/comments","events_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/997/events","html_url":"https://github.com/WHAnonymous/Chat-API/issues/997","id":105836075,"number":997,"title":"Attempted to call function \"mcrypt_create_iv\" from the global namespace","user":{"login":"Madhuri7112","id":13890176,"avatar_url":"https://avatars.githubusercontent.com/u/13890176?v=3","gravatar_id":"","url":"https://api.github.com/users/Madhuri7112","html_url":"https://github.com/Madhuri7112","followers_url":"https://api.github.com/users/Madhuri7112/followers","following_url":"https://api.github.com/users/Madhuri7112/following{/other_user}","gists_url":"https://api.github.com/users/Madhuri7112/gists{/gist_id}","starred_url":"https://api.github.com/users/Madhuri7112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Madhuri7112/subscriptions","organizations_url":"https://api.github.com/users/Madhuri7112/orgs","repos_url":"https://api.github.com/users/Madhuri7112/repos","events_url":"https://api.github.com/users/Madhuri7112/events{/privacy}","received_events_url":"https://api.github.com/users/Madhuri7112/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-10T15:38:16Z","updated_at":"2015-09-11T07:15:53Z","closed_at":"2015-09-10T21:03:09Z","body":"This is the error i get when i try to run the following snippet.\r\n\r\n```php\r\n    $username = \"91999999999\";   //THis is fake number,I have given my original number in my app\r\n    $nickname = \"maddy\";\r\n    $debug = true;\r\n    $password = \"my_password\";\r\n    $w = new WhatsProt($username, $nickname, $debug);\r\n    $w->connect(); \r\n    $w->loginWithPassword($password);\r\n    $events = new MyEvents($w);\r\n    $w->eventManager()->bind(\"onGetMessage\", \"onMessage\");\r\n    $w->pollMessage();\r\n```\r\n\r\nI have integrated this API in my symfony project.\r\nI have registered successfully and got my password.\r\nCan you please tell me the fix for this?\r\n\r\nThe error shows at \r\n```php\r\n    $this->phoneNumber\r\n                ));\r\n     $this->sendAvailableForChat();\r\n     $this->messageId = substr(base64_encode(mcrypt_create_iv(64, MCRYPT_DEV_URANDOM)), 0,      12);\r\n        return true;\r\n    }\r\n```\r\n\r\n`line 2278 of whatsprot.class.php`\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/comments/139470324","html_url":"https://github.com/WHAnonymous/Chat-API/issues/997#issuecomment-139470324","issue_url":"https://api.github.com/repos/WHAnonymous/Chat-API/issues/997","id":139470324,"user":{"login":"Madhuri7112","id":13890176,"avatar_url":"https://avatars.githubusercontent.com/u/13890176?v=3","gravatar_id":"","url":"https://api.github.com/users/Madhuri7112","html_url":"https://github.com/Madhuri7112","followers_url":"https://api.github.com/users/Madhuri7112/followers","following_url":"https://api.github.com/users/Madhuri7112/following{/other_user}","gists_url":"https://api.github.com/users/Madhuri7112/gists{/gist_id}","starred_url":"https://api.github.com/users/Madhuri7112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Madhuri7112/subscriptions","organizations_url":"https://api.github.com/users/Madhuri7112/orgs","repos_url":"https://api.github.com/users/Madhuri7112/repos","events_url":"https://api.github.com/users/Madhuri7112/events{/privacy}","received_events_url":"https://api.github.com/users/Madhuri7112/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T07:15:52Z","updated_at":"2015-09-11T07:15:52Z","body":"@rayidi Is there a way to comment that line and give the message id in any other way?\r\n"}}