[php-src] PR #11305: serialize: Fixed handling of nested object references

From: Date: Tue, 23 May 2023 16:54:01 +0000
Subject: [php-src] PR #11305: serialize: Fixed handling of nested object references
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-22573@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11305 Author: martinhoch42 PHP 8.1+ does not serialize object references correctly under certain circumstances. See tests/serialize/serialization_objects_019.phpt The bug was originally introduced in commit 6c5942f, and the problematic line was last modified in commit bb0b4eb9. (Fixes oss-fuzz #44954) The testcase from bb0b4eb9 still passes. I am not super familiar with the php codebase, but the removed IF looks suspicious and fixes my issue. I initially planned to just open an issue, but then I wrote the testcase and figured I might as well just submit the (likely) fix. Someone else should obviously triple-check this. Especially since the original change was due to optimizations.

« previous php.git-pulls (#22573) next »