From 53d72499638ca61ed0fef31d20451c4ea2b2a34d Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 21 Nov 2023 20:18:47 +0100 Subject: [PATCH] Fixup --- src/zend/globals.rs | 5 ++++- src/zend/handlers.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zend/globals.rs b/src/zend/globals.rs index cf8ded8..cbea80a 100644 --- a/src/zend/globals.rs +++ b/src/zend/globals.rs @@ -8,7 +8,10 @@ use parking_lot::{const_rwlock, RwLock, RwLockReadGuard, RwLockWriteGuard}; use crate::boxed::ZBox; #[cfg(php82)] use crate::ffi::zend_atomic_bool_store; -use crate::ffi::{_zend_executor_globals, ext_php_rs_executor_globals, _sapi_globals_struct, ext_php_rs_sapi_globals, zend_ini_entry}; +use crate::ffi::{ + _sapi_globals_struct, _zend_executor_globals, ext_php_rs_executor_globals, + ext_php_rs_sapi_globals, zend_ini_entry, +}; use crate::types::{ZendHashTable, ZendObject}; /// Stores global variables used in the PHP executor. diff --git a/src/zend/handlers.rs b/src/zend/handlers.rs index 11d220b..f8882a1 100644 --- a/src/zend/handlers.rs +++ b/src/zend/handlers.rs @@ -238,7 +238,7 @@ impl ZendObjectHandlers { let mut zv = Zval::new(); val.get(self_, &mut zv)?; - if zend_is_true(&mut zv) == 1 { + if zend_is_true(&zv) == 1 { return Ok(1); } }