Bug #72760 [Opn]: Built-in server leaks tzcache
| From: | cmb@php.net | Date: | Fri, 05 Aug 2016 10:45:51 +0000 |
| Subject: | Bug #72760 [Opn]: Built-in server leaks tzcache | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202954@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72760&edit=1
ID: 72760
Updated by: cmb@php.net
Reported by: nikic@php.net
Summary: Built-in server leaks tzcache
Status: Open
Type: Bug
Package: Built-in web server
PHP Version: 7.1.0beta1
Block user comment: N
Private report: N
New Comment:
What about creating the date string earlier during the request,
what would be permissible according to RFC 7231, section
7.1.1.2[1]:
| In practice, the date can be generated at any time during
| message origination.
[1] <https://tools.ietf.org/html/rfc7231#section-7.1.1.2>
Previous Comments:
------------------------------------------------------------------------
[2016-08-05 09:55:35] nikic@php.net
Description:
------------
Since https://github.com/php/php-src/commit/f33c7b3e41bda272de83bcc4959b3e0b968e3124
the built-in server will leak the ext/date tzcache once per request.
Reason: The built-in server sends the response during output deactivate, which happens after
deactivate modules. As ext/date releases the tzcache in RSHUTDOWN, this means that the tzcache is
never released.
Possible resolution: Move tzcache destruction into post-deactivate. Or, if that is possible, make
the emission of the Date header independent of ext/date.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72760&edit=1