diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-07-09 17:27:24 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-07-09 17:27:24 +0000 |
commit | 539f67ed8fc4af3084a0f7a0aea64f14a6b4d799 (patch) | |
tree | b82b94354887b9e7152400ee32e7ac15027f79bb /ext/standard/streamsfuncs.h | |
parent | fe9a8266053de5e04468d2e276fbd277978dc1ef (diff) | |
download | php-git-539f67ed8fc4af3084a0f7a0aea64f14a6b4d799.tar.gz |
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)
]
Diffstat (limited to 'ext/standard/streamsfuncs.h')
-rw-r--r-- | ext/standard/streamsfuncs.h | 1 |
1 files changed, 1 insertions, 0 deletions
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: |