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 70462ac commit d120f76Copy full SHA for d120f76
1 file changed
profiling/src/config.rs
@@ -916,6 +916,8 @@ unsafe extern "C" fn parse_profiling_enabled(
916
917
/// Display the profiling enabled config value
918
unsafe extern "C" fn display_profiling_enabled(ini_entry: *mut zend_ini_entry, type_: c_int) {
919
+ // PHP 8.6 changed this field from u8 to bool, so the cast is redundant only on older PHP.
920
+ #[allow(clippy::unnecessary_cast)]
921
let tmp_value: *mut zend_string =
922
if type_ as u32 == ZEND_INI_DISPLAY_ORIG && (*ini_entry).modified as u8 != 0 {
923
if !(*ini_entry).orig_value.is_null() {
0 commit comments