[php-src] PR #25495: Fix object_properties_load() with integer keys

From: Date: Mon, 16 Nov 2026 17:10:08 +0000
Subject: [php-src] PR #25495: Fix object_properties_load() with integer keys
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40698@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25495 Author: nicolas-grekas object_properties_load() adds a dynamic property with an integer key under that integer. Property tables only have string keys, and unserialize() converts such keys for other objects. The property can't be read then, and clone hits an assertion of zend_objects_clone_members() in debug builds: ```php $s = new SplObjectStorage(); $s->__unserialize([[], [7 => 'y']]); var_dump($s->{7}); // Warning: Undefined property clone $s; ``` unserialize() can create the same object.

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