Jump to content



Photo
- - - - -

PHP 7


  • Please log in to reply
63 replies to this topic

#61   PiLLaO

PiLLaO
  • Members
  • 219 posts
  • Real Name:Gustavo
  • Gender:Male
  • Location:Spain

Posted 15 March 2017 - 21:46

Hi, wath is the correct code fro work whit php7

error:

Deprecated: Function mcrypt_encrypt() is deprecated in /httpdocs/includes/modules/payment/apiRedsys/apiRedsysFinal.php on line 70
	function encrypt_3DES($message, $key){
		// Se establece un IV por defecto
		$bytes = array(0,0,0,0,0,0,0,0); //byte [] IV = {0, 0, 0, 0, 0, 0, 0, 0}
		$iv = implode(array_map("chr", $bytes)); //PHP 4 >= 4.0.2

		// Se cifra
		$ciphertext = mcrypt_encrypt(MCRYPT_3DES, $key, $message, MCRYPT_MODE_CBC, $iv); //PHP 4 >= 4.0.2
		return $ciphertext;
	}

Regards

 

Hi Lioelx,

 

I found this fix: https://github.com/e...4f775e59731a698

 

Best regards :)



#62   BrockleyJohn

BrockleyJohn
  • Community Sponsor
  • 497 posts
  • Real Name:John Ferguson
  • Gender:Male
  • Location:sarf Landin

Posted 16 March 2017 - 07:53

Thanks @PiLLaO. @Lioelx if we put that into the php 7 changes are you in a position to test it?


BS Edge for PHP7 - here on github: https://github.com/B...i/PHP-7-changes

Bootstrap addons - one per branch on github: https://github.com/B...iew-of-Branches

 

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later integration at 2.3.x


#63   Lioelx

Lioelx
  • Members
  • 164 posts
  • Real Name:Lionel
  • Gender:Male
  • Location:Spain

Posted 21 March 2017 - 08:58

Hi, @BrockleyJohn, At the moment I can not check anything, I have problems with my vps and my web a week ago.


No external links here, thank you


#64   BrockleyJohn

BrockleyJohn
  • Community Sponsor
  • 497 posts
  • Real Name:John Ferguson
  • Gender:Male
  • Location:sarf Landin

Posted 21 March 2017 - 11:35

Hi, @BrockleyJohn, At the moment I can not check anything, I have problems with my vps and my web a week ago.

 

No worries - I realised it's not one of the bundled payment modules anyway so I misspoke - but maybe you can upload it  to addons if the fix works.


BS Edge for PHP7 - here on github: https://github.com/B...i/PHP-7-changes

Bootstrap addons - one per branch on github: https://github.com/B...iew-of-Branches

 

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later integration at 2.3.x