Posted using LJ Talk...
Mar. 18th, 2007 08:17 pmWarning
Write and Close handlers are called after destructing objects since PHP 5.0.5. Thus destructors can use sessions but session handler can't use objects. In prior versions, they were called in the opposite order. It is possible to call session_write_close() from the destructor to solve this chicken and egg problem.
Нда.................. У разработчиков php логика явно альтернативная