Browse Source

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

Antony Dovgal 4 years ago
parent
commit
51b620ac96
1 changed files with 1 additions and 0 deletions
  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;
 }