Skip to content

Conversation

pull[bot]
Copy link

@pull pull bot commented Nov 30, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

dstogov and others added 4 commits November 30, 2021 16:07
* PHP-8.0:
  Fix crash after indirect modification of string by user error handler
* PHP-8.1:
  Fix crash after indirect modification of string by user error handler
This makes reading/writing with `$splObjectStorage[$offset]` shorthand twice as
fast as it was previously, and a bit faster than offsetGet/offsetSet instead of
(previously) much slower.

Call destructor after overriding old SplObjectStorage entry.
Previously, it was called before, which was possibly unsafe
if the destructor had side effects.

Add tests.

Closes GH-7695

Related to GH-7690

Check for ref in SplObjectStorage->__unserialize, check for ref.

SplObjectStorage->unserialize may be a different cause of references
for malformed inputs, so continue checking

In internally used methods, convert references to non-references if they're
found.
@pull pull bot added the ⤵️ pull label Nov 30, 2021
@pull pull bot merged commit 032de9e into Dithn:master Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants