Parcourir la source

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

Antony Dovgal il y a 5 ans
Parent
commit
51b620ac96
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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;
 }