From 46f4470e0d53be1b99d5a154006fb0a847e0b72d Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 6 Oct 2016 10:15:38 +0200 Subject: ensure the flag doesn't overflow In certain case, it could take more than just 0/1, but 2 bits should be enough. --- main/php_streams.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') 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 */ -- cgit v1.2.1