From 539f67ed8fc4af3084a0f7a0aea64f14a6b4d799 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 9 Jul 2007 17:27:24 +0000 Subject: Added ability to create local or remote (URL) user streams Local user streams must not be able to open(), URLs if allow_url_include is off Implemented new function stream_is_local() [ - stream_wrapper_register() extended with additional optional argument "flags" of type long. This time only one flag is implemented - STREAM_IS_URL, that means that userstream wrapper is remote (URL). By default stream is local. - stream_is_local() is a new function that accepts stream and tell if this stream is local or remote (URL) ] --- ext/standard/streamsfuncs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/standard/streamsfuncs.h') diff --git a/ext/standard/streamsfuncs.h b/ext/standard/streamsfuncs.h index 4d86645485..16b4a7eca8 100644 --- a/ext/standard/streamsfuncs.h +++ b/ext/standard/streamsfuncs.h @@ -55,6 +55,7 @@ PHP_FUNCTION(stream_filter_remove); PHP_FUNCTION(stream_socket_enable_crypto); PHP_FUNCTION(stream_socket_shutdown); PHP_FUNCTION(stream_socket_pair); +PHP_FUNCTION(stream_is_local); /* * Local variables: -- cgit v1.2.1