Sfoglia il codice sorgente

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

Antony Dovgal 4 anni fa
parent
commit
51b620ac96
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;
 }