unserialize() Error Report

unserialize() decodes a string into a PHP data structure: array, int, object, etc. When the

PHP code

<?php

unserialize("an invalid string");

?>

Before

PHP Notice:  unserialize(): Error at offset 0 of 17 bytes in /codes/unserialize_notice.php on line 3

Notice: unserialize(): Error at offset 0 of 17 bytes in /codes/unserialize_notice.php on line 3

After

PHP Warning:  unserialize(): Error at offset 0 of 17 bytes in /codes/unserialize_notice.php on line 3

Warning: unserialize(): Error at offset 0 of 17 bytes in /codes/unserialize_notice.php on line 3

PHP version change

This behavior changed in 8.3