R
R
Rinat Akhtamov2013-06-05 11:35:05
PHP
Rinat Akhtamov, 2013-06-05 11:35:05

Should the resource stream be closed?

Doctrine ORM automatically opens a Resource Stream to get content from a blob. The data from it is read perfectly, only I am tormented by the question, should this resource be closed after use? This issue is not covered in the documentation (or I searched badly).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mayorovp, 2013-06-05
@rinnaatt

Closing never hurts

A
Arks, 2013-06-05
@Arks

more... link to the class where it opens and where it (not) closes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question