object_properties_load() does not work for non-string keys - intentional?
| From: | Stanislav Malyshev | Date: | Wed, 02 Sep 2015 06:35:54 +0000 |
| Subject: | object_properties_load() does not work for non-string keys - intentional? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-88002@lists.php.net to get a copy of this message | ||
Hi!
Working on unserialize edge case patches backporting, I've discovered
that object_properties_load() function crashes if the properties array
contains non-string keys (which can happen on unserialize). Now, I can
fix the crash, but I can fix it in two ways:
1. Ignore such keys (i.e. such properties will be banned, BC break
against 5.x)
2. Treat such keys as in 5.x i.e. insert them in the hash.
So, I wanted to know if dropping non-string keys there was intentional
or not?
--
Stas Malyshev
smalyshev@gmail.com