diff options
author | Anatol Belski <ab@php.net> | 2016-10-06 10:15:38 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-10-06 10:18:31 +0200 |
commit | 46f4470e0d53be1b99d5a154006fb0a847e0b72d (patch) | |
tree | 1255a9807c44602ef3d94111de546d379afe54d6 /main/php_streams.h | |
parent | f924893ab9a6cd8ceeecb0f54e0fb8a7e17019c0 (diff) | |
download | php-git-46f4470e0d53be1b99d5a154006fb0a847e0b72d.tar.gz |
ensure the flag doesn't overflow
In certain case, it could take more than just 0/1, but 2 bits should
be enough.
Diffstat (limited to 'main/php_streams.h')
-rw-r--r-- | main/php_streams.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 82466163a2..2f65d6e97b 100644 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -198,7 +198,7 @@ struct _php_stream { zval wrapperdata; /* fgetwrapperdata retrieves this */ uint8_t is_persistent:1; - uint8_t in_free:1; /* to prevent recursion during free */ + uint8_t in_free:2; /* to prevent recursion during free */ uint8_t eof:1; uint8_t __exposed:1; /* non-zero if exposed as a zval somewhere */ |