Hi,
I am going to commit the same patch to PHP_5_2.
It looks like it breaks binary compatibility but really it doesn't.
Any objections?
Thanks. Dmitry.
-----Original Message-----
From: Dmitry Stogov [mailto:dmitry@php.net]
Sent: Tuesday, July 03, 2007 2:23 PM
To: php-cvs@lists.php.net
Subject: [PHP-CVS] cvs: php-src /ext/standard
basic_functions.c streamsfuncs.c streamsfuncs.h
/ext/standard/tests/file include_userstream_001.phpt
include_userstream_002.phpt /main main.c php_globals.h
php_streams.h /main/streams streams.c userspadmitry Tue Jul 3 10:22:56 2007 UTC
Added files:
/php-src/ext/standard/tests/file include_userstream_001.phpt
include_userstream_002.phptModified files:
/php-src/main main.c php_globals.h php_streams.h
/php-src/main/streams streams.c userspace.c
/php-src/ext/standard basic_functions.c streamsfuncs.c
streamsfuncs.h
Log:
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 functionstream_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)
]
You are changing a global struct and it does not break BC, how does
that work?
Ilia