[php-src] PR #12287: Fix GH-12265: Cloning an object breaks serialization recursion
| From: | nielsdos | Date: | Sat, 23 Sep 2023 19:08:09 +0000 |
| Subject: | [php-src] PR #12287: Fix GH-12265: Cloning an object breaks serialization recursion | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23688@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12287
Author: nielsdos
It broke because of the refcount==1 condition added in 6c5942f83590e622b0e59e388912c67a51ea7bb7.
Removing that condition would work, but remove an optimization.
Instead, work around by adding refcount such that temporaries don't have the special RC1 case,
essentially making the situation identical to as if it had been CVs.