mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.3'
* PHP-7.3: Make php_plain_files_wrapper to be writable (workaround for swoole)
This commit is contained in:
commit
d1e14e2cc0
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue