From 51b620ac96ad2ee807d74b4b37690540ef4b49aa Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 25 Nov 2020 22:02:35 +0300 Subject: [PATCH] unregister INI entries and fix invalid read on shutdown (#8042) --- php/ext/google/protobuf/protobuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/php/ext/google/protobuf/protobuf.c b/php/ext/google/protobuf/protobuf.c index 761eeeb53257..dbdd22a8f624 100644 --- a/php/ext/google/protobuf/protobuf.c +++ b/php/ext/google/protobuf/protobuf.c @@ -297,6 +297,7 @@ static PHP_MINIT_FUNCTION(protobuf) { } static PHP_MSHUTDOWN_FUNCTION(protobuf) { + UNREGISTER_INI_ENTRIES(); return SUCCESS; }