wez             Tue Mar 18 18:45:27 2003 EDT

  Modified files:              
    /php4/ext/standard  streamsfuncs.c 
  Log:
  Add the mode string that was used to open the stream to the meta data,
  as requested by Philip Olson.
  
  
Index: php4/ext/standard/streamsfuncs.c
diff -u php4/ext/standard/streamsfuncs.c:1.4 php4/ext/standard/streamsfuncs.c:1.5
--- php4/ext/standard/streamsfuncs.c:1.4        Fri Feb 28 20:27:50 2003
+++ php4/ext/standard/streamsfuncs.c    Tue Mar 18 18:45:27 2003
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: streamsfuncs.c,v 1.4 2003/03/01 01:27:50 wez Exp $ */
+/* $Id: streamsfuncs.c,v 1.5 2003/03/18 23:45:27 wez Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -309,6 +309,8 @@
        }
        add_assoc_string(return_value, "stream_type", (char *)stream->ops->label, 1);
 
+       add_assoc_string(return_value, "mode", stream->mode, 1);
+       
 #if 0  /* TODO: needs updating for new filter API */
        if (stream->filterhead) {
                php_stream_filter *filter;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to