cvs: php4 /ext/standard info.c
| From: | Jan Lehnardt | Date: | Thu, 29 Aug 2002 18:28:12 +0000 |
| Subject: | cvs: php4 /ext/standard info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13762@lists.php.net to get a copy of this message | ||
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_protocol_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_protocol_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);