1.2.1068. Serialize Magic Method

Classes that defines __serialize() and __unserialize() are using Serialize Magic.

Serialize magic methods were introduced in PHP 7.4, and are not effective before.

<?php

class x {
    function __serialize() {}
    function __unserialize() {}
}

?>

See also New custom object serialization mechanism.

1.2.1068.1. Specs

Short name

Php/SerializeMagic

Rulesets

All, Changed Behavior

Exakat since

1.9.0

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

serialize

Available in

Entreprise Edition, Exakat Cloud