# file_context_dtor in file.c

- Thread: https://externals.io/message/2339
- Original archive: https://news-web.php.net/php.internals/2339
- Started by Stanislav Malyshev on 2003-06-15T15:43:04+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2339 — Stanislav Malyshev — 2003-06-15T15:43:04+00:00

URL: https://externals.io/message/2339#2339

Could someone who knows the new streams code look explain me what the code 
in file.c in ZEND_RSRC_DTOR_FUNC(file_context_dtor) supposed to do? It was 
destroying context->options twice - once with zval_dtor(context->options) 
directly (which I have commented out) and once from 
php_stream_context_free(context). What was it meant to do?

-- 
Stanislav Malyshev, Zend Products Engineer   
stas@zend.com  http://www.zend.com/ +972-3-6139665 ext.109

---

## #2340 — Stanislav Malyshev — 2003-06-15T15:51:17+00:00

URL: https://externals.io/message/2339#2340 · In reply to: #2339

Oh, I had older version of the file, so now it looks OK.

SM>> Could someone who knows the new streams code look explain me what the code 
SM>> in file.c in ZEND_RSRC_DTOR_FUNC(file_context_dtor) supposed to do? It was 
SM>> destroying context->options twice - once with zval_dtor(context->options) 
SM>> directly (which I have commented out) and once from 
SM>> php_stream_context_free(context). What was it meant to do?
SM>> 
SM>> 

-- 
Stanislav Malyshev, Zend Products Engineer   
stas@zend.com  http://www.zend.com/ +972-3-6139665 ext.109
