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



Pilihan baru dengan tautan ke berita dan materi. Dalam rilis: Kandidat rilis PHP 8.0 terbaru sebelum rilis final dan materi segar tentang PHP 8, RFC dan diskusi dari PHP Internal, sebagian dari alat, aliran, podcast, artikel yang berguna.



Selamat membaca!



Berita dan rilis



  • 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; \
    


    Atau seperti ini:
    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.dll PhpStorm









/









!



β€” , , .

Lebih banyak berita dan komentar di saluran Telegram PHP Digest .



Kirim tautan

Cari tautan di semua intisari

← Edisi sebelumnya: PHP-Digest # 191




All Articles