File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ impl ExceptionProfilingStats {
56
56
}
57
57
58
58
#[ cfg( php7) ]
59
- let exception_name = unsafe { ( * ( * exception) . value . obj ) . class_name ( ) } ;
60
- # [ cfg ( php8 ) ]
59
+ let exception = unsafe { ( * exception) . value . obj } ;
60
+
61
61
let exception_name = unsafe { ( * exception) . class_name ( ) } ;
62
62
63
63
let collect_message = REQUEST_LOCALS . with ( |cell| {
@@ -67,12 +67,8 @@ impl ExceptionProfilingStats {
67
67
} ) ;
68
68
69
69
let message = if collect_message {
70
- #[ cfg( php7) ]
71
- let exception_obj = unsafe { ( * exception) . value . obj } ;
72
- #[ cfg( php8) ]
73
- let exception_obj = exception;
74
70
Some ( unsafe {
75
- zend:: zai_str_from_zstr ( zend:: zai_exception_message ( exception_obj ) . as_mut ( ) )
71
+ zend:: zai_str_from_zstr ( zend:: zai_exception_message ( exception ) . as_mut ( ) )
76
72
. into_string ( )
77
73
} )
78
74
} else {
You can’t perform that action at this time.
0 commit comments