# Problem in Order of PHP Shutdown

- Thread: https://externals.io/message/10205
- Original archive: https://news-web.php.net/php.internals/10205
- Started by Florian Schaper on 2004-06-01T14:02:39+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10205 — Florian Schaper — 2004-06-01T14:02:39+00:00

URL: https://externals.io/message/10205#10205

There is a problem in the order the destructors of objects are destroyed at
PHP shutdown.
Let's say in an destructor the objects tries to save some states in a
session variable that would currently fail since destructors are called
after modules are freed.
Sample & patch included.

./regards

Florian Schaper
