1.2.1077. 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.1077.1. Connex PHP features¶
1.2.1077.1.1. Specs¶
Short name |
Php/SerializeMagic |
Rulesets |
|
Exakat since |
1.9.0 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |