Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
PHP 7.2
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BIOS" data-source="post: 418260" data-attributes="member: 15674"><p>Recently read an article discussing changes in the upcoming 7.2 update, source at bottom for full changes.</p><p></p><p>RC1 was released on 31 Aug, full release expected 30 November. Anyhow, seems to be full of good stuff so i'll summarize some of the most notable.</p><p></p><p><span style="font-size: 22px">Language</span></p><p><em>object </em> - parameter and return type.</p><p>Deprecate bare-wood strings, <em>$foo = bar;</em> will throw a warning, rather than continue with unexpected behavior.</p><p>Grouped namespaces - <em>use Foo\Bar\{ Foo, Bar, Baz, }; </em></p><p>Counting an object which does not implement Countable will now throw a warning.</p><p>Parameter type widening - allows use of scalar type-hints without breaking sub-classes.</p><p></p><p><span style="font-size: 22px">Security</span></p><p>"When version 7.2 releases at the end of the year, PHP will be the first programming language to adopt modern cryptography in its standard library."</p><p></p><p><em>password_hash()</em> - option added to use Argon2 (i) as hashing algorithm.</p><p>The libsodum cryptography library is now part of the core - featuring Argon2i, Scrypt, ECDH, and more.</p><p></p><p><span style="font-size: 22px">Deprecations</span></p><p>All of the following will throw warnings in 7.2, most likely be removed in 8.0.</p><p><em>__autoload()</em> - use the more preferred spl_autoload_register()</p><p><em>unset cast</em> - no real use as it's just the same as doing $var = null;</p><p><em>each() </em>- just use foreach</p><p><em>assert(string)</em> - uses eval internally</p><p></p><p>Links:</p><p><a href="https://blog.martinhujer.cz/php-7-2-is-due-in-november-whats-new/" target="_blank">Source</a>.</p><p><a href="https://wiki.php.net/rfc/deprecations_php_7_2" target="_blank">https://wiki.php.net/rfc/deprecations_php_7_2</a></p></blockquote><p></p>
[QUOTE="BIOS, post: 418260, member: 15674"] Recently read an article discussing changes in the upcoming 7.2 update, source at bottom for full changes. RC1 was released on 31 Aug, full release expected 30 November. Anyhow, seems to be full of good stuff so i'll summarize some of the most notable. [SIZE=6]Language[/SIZE] [I]object [/I] - parameter and return type. Deprecate bare-wood strings, [I]$foo = bar;[/I] will throw a warning, rather than continue with unexpected behavior. Grouped namespaces - [I]use Foo\Bar\{ Foo, Bar, Baz, }; [/I] Counting an object which does not implement Countable will now throw a warning. Parameter type widening - allows use of scalar type-hints without breaking sub-classes. [SIZE=6]Security[/SIZE] "When version 7.2 releases at the end of the year, PHP will be the first programming language to adopt modern cryptography in its standard library." [I]password_hash()[/I] - option added to use Argon2 (i) as hashing algorithm. The libsodum cryptography library is now part of the core - featuring Argon2i, Scrypt, ECDH, and more. [SIZE=6]Deprecations[/SIZE] All of the following will throw warnings in 7.2, most likely be removed in 8.0. [I]__autoload()[/I] - use the more preferred spl_autoload_register() [I]unset cast[/I] - no real use as it's just the same as doing $var = null; [I]each() [/I]- just use foreach [I]assert(string)[/I] - uses eval internally Links: [URL='https://blog.martinhujer.cz/php-7-2-is-due-in-november-whats-new/']Source[/URL]. [URL]https://wiki.php.net/rfc/deprecations_php_7_2[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
PHP 7.2
Top