PHP retains global state, including error, session, object and extension state, in a worker even though that state may point to memory owned by one request. A producer operation can publish request-owned state and then fail to reset it, or repopulate it after its normal reset. When the request ends, its heap is freed while the worker still retains the stale reference; a later request handled by the same worker can act as a consumer and read, free, branch on or otherwise use the stale state before normal request initialization replaces it.
Documented producer conditions include fatal errors, out-of-memory failures, parse or compile failures, uncaught errors, require failures, execution timeouts and some diagnostics raised during cleanup. Confirmed consumers include INI diagnostics before request initialization and session upload progress before ordinary session initialization. With Apache mod_php, .htaccess and php_value, php_flag or php_admin_* settings can be applied early; with FPM, reachability depends on frontend-supplied PHP_VALUE or PHP_ADMIN_VALUE parameters and application behavior. Exposure of other state families depends on the application, extensions and the point at which the state was published.