diff --git a/profiling/src/timeline.rs b/profiling/src/timeline.rs index 4a47ae9542..efbbd9a1f4 100644 --- a/profiling/src/timeline.rs +++ b/profiling/src/timeline.rs @@ -208,7 +208,7 @@ unsafe extern "C" fn ddog_php_prof_zend_error_observer( #[cfg(not(zend_error_observer_80))] let filename_str = unsafe { zai_str_from_zstr(file.as_mut()) }; - let filename = filename_str.into_string_lossy().into_owned(); + let filename = filename_str.to_string_lossy().into_owned(); let now = SystemTime::now().duration_since(UNIX_EPOCH).unwrap(); if let Some(profiler) = Profiler::get() {