File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,14 +91,17 @@ impl ZendMMState {
9191
9292#[ cfg( php_zts) ]
9393thread_local ! {
94- /// Using an `UnsafeCell ` here should be okay. There might not be any
95- /// synchronisation issues, as it is used in as thread local and only
94+ /// Using a `Cell ` here should be okay. There might not be any
95+ /// synchronization issues, as it is used in as thread local and only
9696 /// mutated in RINIT and RSHUTDOWN.
9797 static ZEND_MM_STATE : Cell <ZendMMState > = const {
9898 Cell :: new( ZendMMState :: new( ) )
9999 } ;
100100}
101+
101102#[ cfg( not( php_zts) ) ]
103+ /// Using a `Cell` here should be okay. There might not be any
104+ /// synchronization issues, as it is only mutated in RINIT and RSHUTDOWN.
102105static mut ZEND_MM_STATE : Cell < ZendMMState > = Cell :: new ( ZendMMState :: new ( ) ) ;
103106
104107#[ cfg( php_zts) ]
You can’t perform that action at this time.
0 commit comments