[php-src] PR #20369: uri: Fixes to uri serialization
| From: | ndossche | Date: | Sun, 02 Nov 2025 20:50:21 +0000 |
| Subject: | [php-src] PR #20369: uri: Fixes to uri serialization | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33891@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20369
Author: ndossche
- Incoming data should never have an INDIRECT element, that would be a violation of the rules wrt
the INDIRECT types. Therefore there was never a need to use the _ind variant of the hash table find.
- It doesn't matter now because there are no properties; but the get_properties handler cannot
be used in the output of a __serialize call as that would expose INDIRECT elements. To prevent
issues in the future, make it an empty array as a placeholder. If in the future properties are
added, then this will hard fail instead of silently fail with INDIRECTs.