PHP Annotated – July 2019

Posted on by Roman Pronskiy


Greetings everyone,

In our July’s edition of PHP Annotated, you can read about the latest on the PHP 7.4.0 alpha 3 release, ReactPHP 1.0 LTS, new proposals from PHP Internals, such as the Strict operators directive, as well as links for Laravel and Symfony, useful tools, videos, and a whole lot more!

⚡️ News & Releases

🐘 PHP Internals

  • [RFC] Normalize arrays’ “auto-increment” value on copy on write – This RFC proposes to reset the “autoincrement” value when an array is being copied-on-write. As if a new empty array was created and then filled up entry-by-entry from the old one.
            $array = [0, 1, 2, 3];
            unset($array[3], $array[2]);
            $arrayCopy = $array;
            $arrayCopy[] = 2;
            // If the proposal is accepted, the following statement will be true.
            // Currently, the arrays below are not equivalent.
            assert($arrayCopy === [0, 1, 2]);
  • [RFC] Strict operators directive – PHP performs implicit type casting for most operators. The rules of conversion are complex and may lead to surprising results. This RFC proposes to introduce a new directive strict_operators, which will limit type conversions and make them throw TypeError for incompatible operands. The document describes in detail the current and proposed behaviors and has many examples. So far, it has been postponed until PHP 8.0, as the change is too big for 7.4. .
  • 🔈 PHP Internals News #17: – With Theodore Brown and Bishop Bettini about Numeric Literal Separator.
  • 🔈 PHP Internals News #18: – With Arnold Daniels about the Strict Operator Directive.

🛠 Tools



🌀 Async PHP

🚨 Security

💡 Misc

📺 Audio/Video

Thanks for reading!

If you have any interesting or useful links to share via PHP Annotated, leave a comment or drop me a message on Twitter.

Subscribe to PHP Annotated

Your JetBrains PhpStorm Team
The Drive to Develop

Comments below can no longer be edited.

1 Response to PHP Annotated – July 2019

  1. Theodore Brown says:

    June 26, 2020

    There was an RFC for the invalid array access notice. It was accepted back in 2016, but due to issues with the implementation it didn’t make it into PHP 7.2 or PHP 7.3.


Subscribe for updates