PHP 8.1 – Return types for internal methods

house internal
house internal

Every PHP internal methods from internal Classes will now contain a return type declarations. This change will impact any case of extending and overriding of internal PHP classes with custom implementations. From 8.1 we will get a deprecation and since 9.0 it will be a Fatal Error.

Read morePHP 8.1 – Return types for internal methods

PHP 8.1 – Deprecated Serializable interface

abstract clouds
abstract clouds

Since PHP 7.4 magic methods of __seralize() and __unserialize() were added, since then Serializable interfece is obsolete and in fact broken with new PHP 8.x features. This also includes deprecating of PDO::FETCH_SERIALIZE flag of PDO object that will be remove completely in PHP 9.

Read morePHP 8.1 – Deprecated Serializable interface

PHP 8.1 – Asynchronous and lightweight thread execution: Fibers

fibers thread execution in php
fibers thread execution in php
Fibers allow the creation of full-stack, incorruptible functions that can be used to develop cooperative multitasking in PHP. This feature eliminates the distinction between sync and async functions by allowing them to be incorruptible without breaking the entire call stack.

Read morePHP 8.1 – Asynchronous and lightweight thread execution: Fibers