Skip to content

SPL: SplDoublyLinkedList offset*(null) soft-null E_DEPRECATED (#31804) - #31810

Merged
PurHur merged 1 commit into
masterfrom
fix/31804-dllist-offset-null-soft
Aug 17, 2026
Merged

PurHur merged 1 commit into
masterfrom
fix/31804-dllist-offset-null-soft

Conversation

@PurHur

@PurHur PurHur commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • VM/JIT repro maintainer_gap_dllist_offset_null.php
  • Issue31804DllistOffsetNullSoftTest (+ regression Issue31803 / Issue31731)

Closes #31804

Made with Cursor

Match php-src Z_PARAM_LONG for offsetGet/Unset/Exists: null deprecates #1 ($index) and coerces to 0; strict_types still TypeErrors.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: SplDoublyLinkedList offsetGet/Unset/Exists(null) TypeError/silent — Zend E_DEPRECATED soft coerce (ext/spl/spl_dllist.c)

1 participant