- Rename stream_register_filter() to stream_filter_register(),

stream_register_wrapper() to stream_wrapper_register() and added an alias for
  the latter change.
This commit is contained in:
Derick Rethans 2003-05-19 15:35:06 +00:00
parent 73415c9e01
commit 92f0da58e6
9 changed files with 15 additions and 13 deletions

1
NEWS
View File

@ -3,6 +3,7 @@ PHP NEWS
? ? ??? 200?, Version 5.0.0 ? ? ??? 200?, Version 5.0.0
- Moved extensions to PECL (http://pear.php.net/): (James, Tal) - Moved extensions to PECL (http://pear.php.net/): (James, Tal)
. ext/fribidi . ext/fribidi
- Renamed stream_register_wrapper() to stream_wrapper_register(). (Derick)
- Fixed dirname() and strip_tags() to be binary-safe. (Moriyoshi) - Fixed dirname() and strip_tags() to be binary-safe. (Moriyoshi)
- Fixed bug #22386 (Using browscap causes segfault). (Jay) - Fixed bug #22386 (Using browscap causes segfault). (Jay)
- Fixed bug #22895 (PHP cli outputs errors in text AND html). (Marcus) - Fixed bug #22895 (PHP cli outputs errors in text AND html). (Marcus)

View File

@ -699,7 +699,8 @@ function_entry basic_functions[] = {
PHP_FE(stream_get_meta_data, NULL) PHP_FE(stream_get_meta_data, NULL)
PHP_FE(stream_get_line, NULL) PHP_FE(stream_get_line, NULL)
PHP_FE(stream_register_wrapper, NULL) PHP_FE(stream_wrapper_register, NULL)
PHP_FALIAS(stream_register_wrapper, stream_wrapper_register, NULL)
PHP_FE(stream_get_wrappers, NULL) PHP_FE(stream_get_wrappers, NULL)
PHP_FE(stream_get_transports, NULL) PHP_FE(stream_get_transports, NULL)
PHP_FE(get_headers, NULL) PHP_FE(get_headers, NULL)
@ -897,7 +898,7 @@ function_entry basic_functions[] = {
PHP_FE(str_rot13, NULL) PHP_FE(str_rot13, NULL)
PHP_FE(stream_get_filters, NULL) PHP_FE(stream_get_filters, NULL)
PHP_FE(stream_register_filter, NULL) PHP_FE(stream_filter_register, NULL)
PHP_FE(stream_bucket_make_writeable, NULL) PHP_FE(stream_bucket_make_writeable, NULL)
PHP_FE(stream_bucket_prepend, NULL) PHP_FE(stream_bucket_prepend, NULL)
PHP_FE(stream_bucket_append, NULL) PHP_FE(stream_bucket_append, NULL)

View File

@ -108,7 +108,7 @@ PHP_FUNCTION(parse_ini_file);
PHP_FUNCTION(str_rot13); PHP_FUNCTION(str_rot13);
PHP_FUNCTION(stream_get_filters); PHP_FUNCTION(stream_get_filters);
PHP_FUNCTION(stream_register_filter); PHP_FUNCTION(stream_filter_register);
PHP_FUNCTION(stream_bucket_make_writeable); PHP_FUNCTION(stream_bucket_make_writeable);
PHP_FUNCTION(stream_bucket_prepend); PHP_FUNCTION(stream_bucket_prepend);
PHP_FUNCTION(stream_bucket_append); PHP_FUNCTION(stream_bucket_append);

View File

@ -38,7 +38,7 @@ PHP_FUNCTION(stream_get_transports);
PHP_FUNCTION(stream_get_wrappers); PHP_FUNCTION(stream_get_wrappers);
PHP_FUNCTION(stream_get_line); PHP_FUNCTION(stream_get_line);
PHP_FUNCTION(stream_get_meta_data); PHP_FUNCTION(stream_get_meta_data);
PHP_FUNCTION(stream_register_wrapper); PHP_FUNCTION(stream_wrapper_register);
PHP_FUNCTION(stream_context_create); PHP_FUNCTION(stream_context_create);
PHP_FUNCTION(stream_context_set_params); PHP_FUNCTION(stream_context_set_params);
PHP_FUNCTION(stream_context_set_option); PHP_FUNCTION(stream_context_set_option);

View File

@ -77,7 +77,7 @@ class userstream {
} }
stream_register_wrapper("cookietest", "userstream"); stream_wrapper_register("cookietest", "userstream");
include("cookietest://foo"); include("cookietest://foo");

View File

@ -18,7 +18,7 @@ class testfilter extends php_user_filter {
} }
} }
stream_register_filter('testfilter','testfilter'); stream_filter_register('testfilter','testfilter');
$text = "Hello There!"; $text = "Hello There!";

View File

@ -157,17 +157,17 @@ class mystream
} }
if (@stream_register_wrapper("bogus", "class_not_exist")) { if (@stream_wrapper_register("bogus", "class_not_exist")) {
die("Registered a non-existant class!!!???"); die("Registered a non-existant class!!!???");
} }
echo "Not Registered\n"; echo "Not Registered\n";
if (!stream_register_wrapper("test", "mystream")) { if (!stream_wrapper_register("test", "mystream")) {
die("test wrapper registration failed"); die("test wrapper registration failed");
} }
echo "Registered\n"; echo "Registered\n";
if (!stream_register_wrapper("bogon", "uselessstream")) { if (!stream_wrapper_register("bogon", "uselessstream")) {
die("bogon wrapper registration failed"); die("bogon wrapper registration failed");
} }
echo "Registered\n"; echo "Registered\n";

View File

@ -469,9 +469,9 @@ PHP_FUNCTION(stream_get_filters)
} }
/* }}} */ /* }}} */
/* {{{ proto bool stream_register_filter(string filtername, string classname) /* {{{ proto bool stream_filter_register(string filtername, string classname)
Registers a custom filter handler class */ Registers a custom filter handler class */
PHP_FUNCTION(stream_register_filter) PHP_FUNCTION(stream_filter_register)
{ {
char *filtername, *classname; char *filtername, *classname;
int filtername_len, classname_len; int filtername_len, classname_len;

View File

@ -342,9 +342,9 @@ static php_stream *user_wrapper_opendir(php_stream_wrapper *wrapper, char *filen
} }
/* {{{ proto bool stream_register_wrapper(string protocol, string classname) /* {{{ proto bool stream_wrapper_register(string protocol, string classname)
Registers a custom URL protocol handler class */ Registers a custom URL protocol handler class */
PHP_FUNCTION(stream_register_wrapper) PHP_FUNCTION(stream_wrapper_register)
{ {
char *protocol, *classname; char *protocol, *classname;
int protocol_len, classname_len; int protocol_len, classname_len;