Explorar o código

unregister INI entries and fix invalid read on shutdown (#8042)

Antony Dovgal %!s(int64=4) %!d(string=hai) anos
pai
achega
51b620ac96
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      php/ext/google/protobuf/protobuf.c

+ 1 - 0
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;
 }