diff options
author | Wez Furlong <wez@php.net> | 2002-03-16 16:06:18 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-16 16:06:18 +0000 |
commit | 044732711842a61ba555cc0782a85fb1e7097dd1 (patch) | |
tree | ae874b2d87bd5631a4492af7ff777547262ec743 /main/streams.c | |
parent | ac50b53018fe62961313d07fec3aaea7c898e2e6 (diff) | |
download | php-git-044732711842a61ba555cc0782a85fb1e7097dd1.tar.gz |
Implement get_file_contents() as discussed (briefly!) by myself, Derick
and Sterling on php-dev some months ago.
It returns the file contents as a string, and uses mmap if possible.
Diffstat (limited to 'main/streams.c')
-rwxr-xr-x | main/streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams.c b/main/streams.c index be5ae0812c..df562bfc7d 100755 --- a/main/streams.c +++ b/main/streams.c @@ -90,7 +90,7 @@ PHPAPI int php_stream_free(php_stream *stream, int call_dtor) /* {{{ */ ret = stream->ops->close(stream, call_dtor); stream->abstract = NULL; - if (call_dtor) { + if (call_dtor) { /* tidy up any FILE* that might have been fdopened */ if (stream->fclose_stdiocast == PHP_STREAM_FCLOSE_FDOPEN && stream->stdiocast) { fclose(stream->stdiocast); |