From 7a88deb40258ec00d93afec7c05c107044fe0025 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 12 May 2001 21:48:39 +0000 Subject: [PATCH] expose streams to other extensions. --- ext/standard/file.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/standard/file.c b/ext/standard/file.c index bc0023dcac..04aadafb2e 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -17,6 +17,7 @@ | Andi Gutmans | | Zeev Suraski | | PHP 4.0 patches by Thies C. Arntzen (thies@thieso.net) | + | PHP 4.1 streams by Wez Furlong (wez@thebrainroom.com) | +----------------------------------------------------------------------+ */ @@ -137,6 +138,11 @@ static void _file_stream_dtor(zend_rsrc_list_entry * rsrc) } #endif +PHPAPI int php_file_le_stream(void) +{ + return le_stream; +} + static void _file_fopen_dtor(zend_rsrc_list_entry *rsrc) { FILE *fp = (FILE *)rsrc->ptr; @@ -2428,6 +2434,7 @@ php_meta_tags_token php_next_meta_token(FILE *fp, int socketd, int issock, int * * tab-width: 4 * c-basic-offset: 4 * End: + * vim: tw=78 sw=4 ts=4 */ -- 2.50.1