PHP-Digest # 192 (November 2 - 16, 2020)



Fresh selection with links to news and materials. In release: The latest PHP 8.0 release candidate before the final release and fresh materials on PHP 8, RFCs and discussions from PHP Internals, a portion of useful tools, streams, podcasts, articles.



Enjoy reading!



News and releases



  • PHP 8.0 RC 4 โ€” - PHP 8, 26 .



    PHP 8:





    , PHP 8 PECL. - Dockerfile, . PECL FriendsOfPHP/pickle.
    RUN curl -L -o /tmp/pickle.phar https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar; \
        mv /tmp/pickle.phar /usr/local/bin/pickle; \
        chmod +x /usr/local/bin/pickle; \
        pickle install xdebug; \
    
    RUN echo "extension=xdebug.so" >> $PHP_INI_DIR/conf.d/php.ini; \
    


    Or like this:
    RUN mkdir -p /usr/src/php/ext/xdebug && \
        curl -fsSL https://pecl.php.net/get/xdebug | \
        tar xvz -C "/usr/src/php/ext/xdebug" --strip 1 && docker-php-ext-install xdebug
    


  • phpcommunity.ru โ€” PHP- , , .



    : PHP- , 19 ; Online- PHP SimbirSoft, 20 .



PHP Internals



  • [Draft] Closure self reference โ€” . $lambda, . $this .
    $fibonacci = function (int $n) use (&$fibonacci) {
        if ($n === 0) return 0;
        if ($n === 1) return 1;
        return $fibonacci($n-1) + $fibonacci($n-2);
    };
    
    // =>
    
    $fibonacci = function (int $n) {
        if ($n === 0) return 0;
        if ($n === 1) return 1;
        return $lambda($n-1) + $lambda($n-2);
    };
    
  • [PR] Support for <func>::function syntax โ€” ::function ( ::fn) ::class. , .
  • [Discussion] Alias for `int|float` โ€” number numeric int | float. , TypeScript: type Number = Foo|Bar;.






Symfony





Laravel





Yii





Async PHP





phpstorm PhpStorm









/









!



โ€” , , .

More news and comments on the PHP Digest Telegram channel .



Send link

Search links in all digests

โ† Previous issue: PHP-Digest # 191




All Articles