10 Commits
Author SHA1 Message Date
Gina Peter Banyard 2c1c61de07 spl: deprecate spl_object_hash()
RFC: https://wiki.php.net/rfc/deprecations_php_8_6#deprecate_spl_object_hash
2026-08-10 18:21:19 +01:00
NickSdot 06a5a1f6d3 ext/spl: applied fixers to improve test robustness (#23058) 2026-08-07 13:47:53 +01:00
Pratik Bhujel d694135da0 Fix GH-21831: Disallow SplObjectStorage mutation during getHash() (#21835)
Fixes GH-21831.

`getHash()` runs while `SplObjectStorage` is looking up an object. Letting it mutate a storage from there is unsafe, because the caller may still be iterating the table that just changed underneath it.

This makes that fail immediately with an `Error` instead of trying to handle it one caller at a time.

The existing concurrent deletion tests now cover the new rule, and GH-21831 has a direct regression test. This targets master, so the behavior change is also noted in `UPGRADING`.
2026-05-04 13:43:41 +01:00
ndossche 216edef71f Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Fix concurrent iteration and deletion issues in SplObjectStorage
2026-04-06 19:48:27 +02:00
ndossche 43a4f91c52 Fix concurrent iteration and deletion issues in SplObjectStorage
Closes GH-21443.
2026-04-06 19:47:37 +02:00
Nicolas Grekas fc353966f3 Revert deprecation of __sleep and __wakeup (#19966) 2025-10-06 10:30:27 +02:00
Gina Peter Banyard a5f2eee785 Zend: Deprecate __wakeup() (#19435)
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods
2025-09-11 06:57:21 +01:00
Gina Peter Banyard 16872310d5 ext/spl: Deprecate SplObjectStorage::contains(), SplObjectStorage::attach(), and SplObjectStorage::detach() (#19424)
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_splobjectstoragecontains_splobjectstorageattach_and_splobjectstoragedetach
2025-08-09 11:36:14 +01:00
Gina Peter Banyard a648365fc0 ext/spl: Throw TypeError when overloaded SplObjectStorage::getHash() method does not return a string 2024-03-17 23:08:58 +00:00
Gina Peter Banyard 610c7a07b1 Move SplObjectStorage test to a folder 2024-03-17 23:08:47 +00:00