diff options
| author | Wez Furlong <wez@php.net> | 2001-05-12 21:48:39 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2001-05-12 21:48:39 +0000 |
| commit | 7a88deb40258ec00d93afec7c05c107044fe0025 (patch) | |
| tree | 1ef6552257d828dadaa57bd81c55ee250b903583 /ext | |
| parent | cbc07d4eb0885a47def3e51ef15789c3c3d4b178 (diff) | |
| download | php-git-7a88deb40258ec00d93afec7c05c107044fe0025.tar.gz | |
expose streams to other extensions.
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/file.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <andi@zend.com> | | Zeev Suraski <zeev@zend.com> | | 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 */ |
