From 8c1f5edd4cf584d3adbc28ba2591e68b4fd3930d Mon Sep 17 00:00:00 2001 From: Joe Hoyle Date: Tue, 7 Feb 2023 18:27:01 +0200 Subject: [PATCH] Mate GlobalExecutor::get_mut() public THis is useful if you want to insert global variables or the like into the the global executor. --- src/zend/globals.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zend/globals.rs b/src/zend/globals.rs index 6a171180c8..7ba76c4980 100644 --- a/src/zend/globals.rs +++ b/src/zend/globals.rs @@ -36,7 +36,7 @@ impl ExecutorGlobals { /// Attempting to retrieve the globals while already holding the global /// guard will lead to a deadlock. Dropping the globals guard will release /// the lock. - fn get_mut() -> GlobalWriteGuard { + pub fn get_mut() -> GlobalWriteGuard { // SAFETY: PHP executor globals are statically declared therefore should never // return an invalid pointer. let globals = unsafe { ext_php_rs_executor_globals().as_mut() }