Эх сурвалжийг харах

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

Antony Dovgal 4 жил өмнө
parent
commit
51b620ac96

+ 1 - 0
php/ext/google/protobuf/protobuf.c

@@ -297,6 +297,7 @@ static PHP_MINIT_FUNCTION(protobuf) {
 }
 }
 
 
 static PHP_MSHUTDOWN_FUNCTION(protobuf) {
 static PHP_MSHUTDOWN_FUNCTION(protobuf) {
+  UNREGISTER_INI_ENTRIES();
   return SUCCESS;
   return SUCCESS;
 }
 }