Skip to content

Destructors not invoked after a fatal error #18418

Open
@danog

Description

@danog

Description

This behavior is caused by

zend_objects_store_mark_destructed(&EG(objects_store));
and is causing a few issues in our code.

Granted, the application state after a fatal error (mainly execution timeout/memory limit) may not be consistent, however shutdown handlers are executed anyway after a fatal: thus, to match the behavior of shutdown handlers, I'd like to submit a PR to re-enable execution of destructors, opening this issue to gauge the mood.

PHP Version

8.4.6

Operating System

Ubuntu 24.04

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

      close