You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error!("Memory allocation profiling will be disabled as long as JIT is active. To enable allocation profiling disable JIT or upgrade PHP to at least version 8.1.21 or 8.2.8. See https://github.com/DataDog/dd-trace-php/pull/2088");
118
+
true
119
+
}else{
120
+
false
121
+
}
122
+
}
123
+
112
124
pubfnallocation_profiling_rinit(){
113
125
let allocation_profiling:bool = REQUEST_LOCALS.with(|cell| {
error!("Memory allocation profiling will be disabled as long as JIT is active. To enable allocation profiling disable JIT or upgrade PHP to at least version 8.1.21 or 8.2.8. See https://github.com/DataDog/dd-trace-php/pull/2088");
// `is_zend_mm()` should be `false` now, as we installed our custom handlers
182
185
ifis_zend_mm(){
183
-
error!("Memory allocation profiling could not be enabled. Please feel free to fill an issue stating the PHP version and installed modules. Most likely the reason is your PHP binary was compiled with `ZEND_MM_CUSTOM` being disabled.");
184
-
REQUEST_LOCALS.with(|cell| {
185
-
letmut locals = cell.borrow_mut();
186
-
locals.profiling_allocation_enabled = false;
187
-
});
186
+
// Can't proceed with it being disabled, because that's a system-wide
187
+
// setting, not per-request.
188
+
panic!("Memory allocation profiling could not be enabled. Please feel free to fill an issue stating the PHP version and installed modules. Most likely the reason is your PHP binary was compiled with `ZEND_MM_CUSTOM` being disabled.");
0 commit comments