# Custom Streams, fclose & stream_close

- Thread: https://externals.io/message/21856
- Original archive: https://news-web.php.net/php.internals/21856
- Started by Jared Williams on 2006-02-13T12:12:02+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

---

## #21856 — Jared Williams — 2006-02-13T12:12:02+00:00

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

Hi,
	Is the PHP manual correct in that `fclose()` returns a bool, but a custom wrapper stream_close() is void? Would like to signal
a problem if I have a problem closing a custom stream.

Jared

---

## #21867 — Wez Furlong — 2006-02-15T07:33:10+00:00

URL: https://externals.io/message/21856#21867 · In reply to: #21856

stream_close can return any value it likes... however, it is ignored
and php_userstreamop_close always returns success to the streams
layer.
This is a bug, but should be simple to fix. (volunteers welcome; I
don't have a current cvs checkout).

--Wez.


>
>
> Hi,
>         Is the PHP manual correct in that `fclose()` returns a bool, but a custom wrapper stream_close() is void? Would like to signal
> a problem if I have a problem closing a custom stream.
>
> Jared
