Commit afb7b97
authored
Fixes to uri serialization (php#20369)
- 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.1 parent 51ca716 commit afb7b97
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
803 | | - | |
804 | | - | |
| 803 | + | |
805 | 804 | | |
806 | 805 | | |
807 | 806 | | |
| |||
840 | 839 | | |
841 | 840 | | |
842 | 841 | | |
843 | | - | |
| 842 | + | |
844 | 843 | | |
845 | 844 | | |
846 | 845 | | |
| |||
990 | 989 | | |
991 | 990 | | |
992 | 991 | | |
993 | | - | |
994 | | - | |
| 992 | + | |
995 | 993 | | |
996 | 994 | | |
997 | 995 | | |
| |||
0 commit comments