We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e3479 commit e4b39d6Copy full SHA for e4b39d6
phper/src/enums.rs
@@ -32,7 +32,7 @@ use sealed::sealed;
32
use std::{
33
ffi::{CStr, CString},
34
marker::PhantomData,
35
- mem::zeroed,
+ mem::{MaybeUninit, zeroed},
36
ptr::null_mut,
37
rc::Rc,
38
};
@@ -287,7 +287,7 @@ unsafe fn register_enum_case(
287
value.len().try_into().unwrap(),
288
true.into(),
289
);
290
- let mut value = ZVal::from(());
+ let mut value = MaybeUninit::<zval>::uninit();
291
phper_zval_str(value.as_mut_ptr(), value_ptr);
292
293
zend_enum_add_case_cstr(class_ce, case_name.as_ptr(), value.as_mut_ptr());
0 commit comments