mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fixed bug #61253: Wrappers opened with errors concurrency problem
#NOTE: There is a very small possibility that this will further break #extensions that access wrapper->{err_stack, err_count}. On PECL SVN, rar is the #only one and it may leak memory after this. I say "further break" because #extensions that do that are already broken (will segfault) under ZTS, which is #why this patch is necessary. #There was what I deem as tacit acceptance from 5.3/5.4 RMs on this.
This commit is contained in:
parent
b7c9f8ae8a
commit
f413b3726c
5 changed files with 70 additions and 40 deletions
|
@ -162,8 +162,8 @@ struct _php_stream_wrapper {
|
|||
int is_url; /* so that PG(allow_url_fopen) can be respected */
|
||||
|
||||
/* support for wrappers to return (multiple) error messages to the stream opener */
|
||||
int err_count;
|
||||
char **err_stack;
|
||||
int err_count; /* unused */
|
||||
char **err_stack; /* unusued */
|
||||
};
|
||||
|
||||
#define PHP_STREAM_FLAG_NO_SEEK 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue