]> granicus.if.org Git - php/commitdiff
expose streams to other extensions.
authorWez Furlong <wez@php.net>
Sat, 12 May 2001 21:48:39 +0000 (21:48 +0000)
committerWez Furlong <wez@php.net>
Sat, 12 May 2001 21:48:39 +0000 (21:48 +0000)
ext/standard/file.c

index bc0023dcac5fa07c77af3e9dbb05b08bb772b1d1..04aadafb2e273c92414b1ebd951bf6f44bbd81f8 100644 (file)
@@ -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
  */