-
Notifications
You must be signed in to change notification settings - Fork 8k
Spl object storage refactor #13666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spl object storage refactor #13666
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One remark: last commit is not entirely correct. First two commits are correct.
e2b4e23 to
6945677
Compare
| @@ -1,5 +1,5 @@ | |||
| --TEST-- | |||
| SPL: ArrayObject | |||
| Bug #70053 (MutlitpleIterator array-keys incompatible change in PHP 7) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in MultipleIterator
| * need to convert it to just use a normal backing HashTable | ||
| * in the meantime we skip this whole block if it is this case. */ | ||
| if (parent == spl_ce_MultipleIterator) { | ||
| goto end; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's now harder to follow the logic, I'm not sure this is an improvement.
If you fix this TODO and this code in a follow up then it's fine I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am planning to, but as I'm going on holiday I will leave this PR open so that I dont' forget about it.
|
I am closing this as I don't think using a normal HashTable for My initial idea was to use the "key" as the actual key and loop through the HashTable when attempting to remove an iterator, however this doesn't work as Using the object handle ID is not feasible either, and I don't think I'm comfortable using some other way to detect different objects (e.g. the pointer address of the object). |
No description provided.