]> granicus.if.org Git - php/commit
Avoid double-freeing streams.
authorWez Furlong <wez@php.net>
Mon, 6 Jun 2005 01:51:48 +0000 (01:51 +0000)
committerWez Furlong <wez@php.net>
Mon, 6 Jun 2005 01:51:48 +0000 (01:51 +0000)
commit42ada22e0c9de8b8e2eab294f91103a90b42829b
treee228cb02047edb82dcaab59c365151522413ceef
parentfc8aace243266865977079e9ba739671e10a84a1
Avoid double-freeing streams.
This can happen because all streams are registered as resources;
the engine also tracks them in the open_files global.

Avoid the potential for double-freeing by simply making streams exposed to the
engine have no closer for the engine to call; they will already be in the
resource list, and thus will be shut down properly at request end.
Zend/zend_language_scanner.l
main/main.c