# zval_ptr_dtor_str(return_value)

- Thread: https://externals.io/message/119041
- Original archive: https://news-web.php.net/php.internals/119041
- Started by Thomas Hruska on 2022-11-27T14:17:49+00:00
- Messages: 1
- 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

---

## #119041 — Thomas Hruska — 2022-11-27T14:17:49+00:00

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

In ext/standard/file.c, when php_stream_read_to_str() fails, `fread()` 
calls:  zval_ptr_dtor_str(return_value);

Is there ever a situation where return_value can be a string that has to 
be freed?

-- 
Thomas Hruska
CubicleSoft President

CubicleSoft has over 80 original open source projects and counting.
Plus a couple of commercial/retail products.

What software are you looking to build?
