ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-cvs
php-cvs
[PHP-CVS] cvs: php4 /ext/standard info.c
by Jan Lehnardt other posts by this author
Aug 29 2002 6:28PM messages near this date
[PHP-CVS] cvs: php4(apache_hooks) /sapi/apache mod_php4.c sapi_apache.c | [PHP-CVS] cvs: CVSROOT / avail
jan		Thu Aug 29 14:28:12 2002 EDT

  Modified files:              
    /php4/ext/standard	info.c 
  Log:
   - seperate registered streams.
  #read: make sebastian happy ;)
  
  
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.196 php4/ext/standard/info.c:1.197
--- php4/ext/standard/info.c:1.196	Thu Aug 29 05:11:22 2002
+++ php4/ext/standard/info.c	Thu Aug 29 14:28:11 2002
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: info.c,v 1.196 2002/08/29 09:11:22 jan Exp $ */
+/* $Id: info.c,v 1.197 2002/08/29 18:28:11 jan Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -376,14 +376,16 @@
 						zend_hash_get_current_key_ex(url_stream_wrappers_hash, &stream_protocol, &stream_prot
ocol_len, NULL, 0, NULL) == HASH_KEY_IS_STRING;
 						zend_hash_move_forward(url_stream_wrappers_hash)) {
 					if (NULL == (stream_protocols_buf = erealloc(stream_protocols_buf,
-									stream_protocols_buf_len + stream_protocol_len + 1 /* "\n" */ + 1 /* 0 byte at end
 */))) {
+									stream_protocols_buf_len + stream_protocol_len + 2 /* ", " */ + 1 /* 0 byte at end
 */))) {
 						break;
 					}
 					memcpy(stream_protocols_buf + stream_protocols_buf_len, stream_protocol, stream_protoc
ol_len);
-					stream_protocols_buf[stream_protocols_buf_len + stream_protocol_len] = ' ';
-					stream_protocols_buf_len += stream_protocol_len + 1;
+					stream_protocols_buf[stream_protocols_buf_len + stream_protocol_len] = ',';
+					stream_protocols_buf[stream_protocols_buf_len + stream_protocol_len + 1] = ' ';
+					stream_protocols_buf_len += stream_protocol_len + 2;
 				}
 				if (stream_protocols_buf) {
+					stream_protocols_buf[stream_protocols_buf_len - 2] = ' ';
 					stream_protocols_buf[stream_protocols_buf_len] = 0;
 					php_info_print_table_row(2, "Registered PHP Streams", stream_protocols_buf);
 					efree(stream_protocols_buf);



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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved