Re: [RFC] Modify tempnam() to handle directories and auto-cleanup
| From: | Sara Golemon | Date: | Tue, 27 Nov 2012 00:30:23 +0000 |
| Subject: | Re: [RFC] Modify tempnam() to handle directories and auto-cleanup | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64056@lists.php.net to get a copy of this message | ||
> An obvious question is: When in shutdown should that be called? Assume I
> have a session handler which uses such a temporary directory which is
> backed by a custom stream while having a registered shutdown function
> accessing that session (what did i forget to put into that scenario?)
>
Is this custom session handler wanting the temporary directory to last
between requests?
If so then they'd just not use the TEMPNAM_REQUEST flag.
If not, then there wouldn't be a problem since RSHUTDOWN happens after
calling the methods registered with register_shutdown_function().
-Sara