Fiber is a code block that maintains its stack (variables and state), that can be started, suspended, or terminated cooperatively by the main code and the Fiber4 4 https://php.watch/versions/8.1/fibers 3 https://stitcher.io/blog/fibers-with-a-grain-of-salt 23/38
long-term vision to convert all resources to dedicated objects.5 finfo_file, finfo_open will use finfo objects instead of resources. 5 https://github.com/php/php-tasks/issues/6 25/38
writes to $GLOBALS taken as a whole. All the following will generate a compile-time error — Nikita Popov $GLOBALS = []; $GLOBALS += []; $GLOBALS =& $x; $x =& $GLOBALS; unset($GLOBALS); // Compile-time error by_ref($GLOBALS); // Run-time error 26/38
on Packagist, and only found 23 cases that will be affected by this change. We can conclude the impact of this — technically breaking — change will be low, which is why internals decided to add it in PHP 8.1. Remember that most of us will win by this change, given the positive performance impact it has everywhere in our code.6 6 https://stitcher.io/blog/new-in-php-81 27/38
MySQL and Sqlite result sets will be returned using native PHP types instead of strings when using emulated prepared statements — Functions like htmlspecialchars() and htmlentities() now also escape ' by default to '; malformed UTF-8 will also be replaced with a unicode character, instead of resulting in an empty string — date_sunrise() and date_sunset() functions, along with their INI values, are deprecated in favor of date_sun_info() function 31/38
functions have an extra argument added to them called $options with a default value of [] so it won't affect your code — New support for MurmurHash3 and xxHash 32/38
https://www.stitcher.io/blog/new-in- php-81 — Also https://php.watch/versions/8.1 — Subscribe to The Road to PHP 8.1 https://road-to-php.com — Follow @brendt_gd on Twitter https://twitter.com/ brendt_gd — Wait for November 25th, 2021 — Download the developer preview (8.1.0RC2) 34/38
an existing CodeIgniter 3/jQuery/Bootstrap ( ) application to Laravel ( ) — Freelance on an hourly basis or part-time employment (16 hrs/week) — Work with me — PHP (Laravel, TALL Stack) — JS (Alpine.js) — Git — TDD (PHPUnit and/or Pest) — MySQL — Metal — Beer — Food Hit me up a!erwards and we'll talk shop. Or write me an email ([email protected]). 38/38