[PHP-NOTES] note 130501 added to function.unserialize

[email protected] ("[email protected]") Wed, 08 Oct 2025 15:47:14 +0000
Newsgroups php.notes
Message-ID <[email protected]>
Beware: file_put_contents() is racy by design and if you use it to write serialize()d data, you may end up having error such as

    unserialize(): Extra data starting at offset 1000 of 1002 bytes

For details, see https://github.com/php/php-src/issues/20108
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 130.234.82.94)
----
Manual Page -- https://php.net/manual/en/function.unserialize.php
Edit        -- https://main.php.net/note/edit/130501
Del: integrated  -- https://main.php.net/note/delete/130501/integrated
Del: useless     -- https://main.php.net/note/delete/130501/useless
Del: bad code    -- https://main.php.net/note/delete/130501/bad+code
Del: spam        -- https://main.php.net/note/delete/130501/spam
Del: non-english -- https://main.php.net/note/delete/130501/non-english
Del: in docs     -- https://main.php.net/note/delete/130501/in+docs
Del: other reasons-- https://main.php.net/note/delete/130501
Reject      -- https://main.php.net/note/reject/130501
Search      -- https://main.php.net/manage/user-notes.php