Skip to content

Commit 831b3c8

Browse files
authored
Mate GlobalExecutor::get_mut() public (#227)
1 parent 87ac43d commit 831b3c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zend/globals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl ExecutorGlobals {
3636
/// Attempting to retrieve the globals while already holding the global
3737
/// guard will lead to a deadlock. Dropping the globals guard will release
3838
/// the lock.
39-
fn get_mut() -> GlobalWriteGuard<Self> {
39+
pub fn get_mut() -> GlobalWriteGuard<Self> {
4040
// SAFETY: PHP executor globals are statically declared therefore should never
4141
// return an invalid pointer.
4242
let globals = unsafe { ext_php_rs_executor_globals().as_mut() }

0 commit comments

Comments
 (0)