Friday 1 June 2018

What was changed in PHP 7.2

What was changed in PHP 7.2

PHP 7.1 was released 9 months ago so it’s time to look at PHP 7.2 release. At the moment of 
writing this article PHP 7.2 is in Beta 3 version  Looking at releases of previous versions and 
release plan for PHP 7.2 I think we should expect the final release until the end of year, probably 
at the beginning of December 2017. 
PHP Training in Chandigarh

 Security Is the Most Important Thing Here

The 7.2 Release offers some highly needed improvements to security.
  • The Libsodium cryptography library, for authenticated encryption and high-speed elliptic
 cryptography, is now a core extension. I've been waiting for this to happen for a while now.
  • The Argon2 algorithm for disagree passwords addresses my personal drawback of the 
current algorithms, in that they were construct for the highest memory filling rate.
 Bye bye Mcrypt. The Mcrypt cryptography library development has been officially removed. 
  • PHP developers have said that Mcrypt highly inhibited the growth of the PHP language
 and served as "abandonware."
  • SSL-Secure Sockets Layer or TLS -Transport Layer Security framework have been
 improved.PHP is the simple programming language used to develop website with 
PHP Training in Chandigarh.


Improved Programming Language Features

There are other updates to help fix some people's complaints about the language. So, here we 
go.
  • A new warning has been added when calling the count () function with a parameter 
that is a scalar, a parameter that is null, or an object that does not implement the Countable 
interface.
  • Object type hints fix a situation in which a developer can't declare a function that needs
 to be passed an object as a parameter or declare that a function should return an object. 
The fix uses object as a parameter type and as a return type.
  • Hash context as an object. Issue the hash extension to use an object extension for
 hash contexts instead of using resources.
  • Conversion of numeric keys in object/array casts addresses an issue with the Zend 
Engine, which powers PHP 7. The engine has cases in which array hash tables can contain
 numeric strings, while object hash tables can have integer keys. In such cases, PHP code 
can't find the keys. With the fix in PHP 7.2, keys of arrays or object hash tables are 
converted as appropriate, so numeric string property names in objects become integer 
array keys and vice versa, solving the issue of inaccessible properties.

PHP Training in Chandigarh is the best way to learn programming language very 
easily for developing any website.