PHP Classes

php7 compat

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  php7 compat  >  (Un) Subscribe thread alerts  
Subject:php7 compat
Summary:mcrypt_cfb not available in php7
Messages:2
Author:Markus S.
Date:2016-07-22 11:21:41
 

  1. php7 compat   Reply   Report abuse  
Picture of Markus S. Markus S. - 2016-07-22 11:21:41
the used function "mcrypt_cfb" in cookie_oauth_client.php was removed with php7 therefore the lib doesnt work on php7+

  2. Re: php7 compat   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-07-22 23:36:22 - In reply to message 1 from Markus S.
OK, I have replaced the functions. Just let me know if you find any other issues.

Also keep in mind that you need to set the class $key variable to an secret key of yours, so the cookies can be encrypted securely. Now the class will fail if the $key variable is empty.