Skip to content

Segmentation fault (stack overflow) in AppendIterator #15911

Closed

Description

@YuanchengJiang

Description

The following code:

<?php
$iterator = new \AppendIterator();
$iterator->append($iterator);

PHP Version

PHP 8.4.0-dev

Operating System

ubuntu 22.04

Activity

  1. devnexen commented on Sep 16, 2024

    @devnexen
    Member

    seems spl issue, might be wrong.

  2. cmb69 commented on Sep 16, 2024

    @cmb69
    Member

    Well, that's infinite recursion. See #9104.

  3. ndossche commented on Sep 16, 2024

    @ndossche
    Member

    Related to #15672

  4. DanielEScherzer commented on Oct 18, 2024

    @DanielEScherzer
    Member

    Per https://3v4l.org/Dvcb0 this has been around 8.1 (or earlier), patch targeting 8.2 sent at #16492

  5. Girgias commented on Oct 20, 2024

    @Girgias
    Member

    I don't think there is anything meaningful that can be done here. Infinite recursion is a programming error.

  6. added a commit that references this issue on Jul 3, 2026
    2219933
  7. added 2 commits that reference this issue on Jul 7, 2026
    53b80f0
    4afc970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions