Merge branch 'PHP-7.3'

* PHP-7.3:
  Make php_plain_files_wrapper to be writable (workaround for swoole)
This commit is contained in:
Dmitry Stogov 2018-10-24 11:50:18 +03:00
commit d1e14e2cc0
3 changed files with 4 additions and 3 deletions

View file

@ -26,6 +26,6 @@ php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, const char *pat
extern PHPAPI const php_stream_wrapper php_stream_http_wrapper;
extern PHPAPI const php_stream_wrapper php_stream_ftp_wrapper;
extern PHPAPI const php_stream_wrapper php_stream_php_wrapper;
extern PHPAPI const php_stream_wrapper php_plain_files_wrapper;
extern PHPAPI /*const*/ php_stream_wrapper php_plain_files_wrapper;
#endif

View file

@ -20,7 +20,7 @@
/* operations for a plain file; use the php_stream_fopen_XXX funcs below */
PHPAPI extern php_stream_ops php_stream_stdio_ops;
PHPAPI extern const php_stream_wrapper php_plain_files_wrapper;
PHPAPI extern /*const*/ php_stream_wrapper php_plain_files_wrapper;
BEGIN_EXTERN_C()

View file

@ -1453,7 +1453,8 @@ static const php_stream_wrapper_ops php_plain_files_wrapper_ops = {
php_plain_files_metadata
};
PHPAPI const php_stream_wrapper php_plain_files_wrapper = {
/* TODO: We have to make php_plain_files_wrapper writable to support SWOOLE */
PHPAPI /*const*/ php_stream_wrapper php_plain_files_wrapper = {
&php_plain_files_wrapper_ops,
NULL,
0