File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,12 @@ impl Embed {
8282 filename : null_mut ( ) ,
8383 opened_path : null_mut ( ) ,
8484 type_ : 0 ,
85+ #[ cfg( php81) ]
8586 primary_script : false ,
87+ #[ cfg( php81) ]
8688 in_list : false ,
89+ #[ cfg( not( php81) ) ]
90+ free_filename : false ,
8791 buf : null_mut ( ) ,
8892 len : 0 ,
8993 } ;
@@ -96,8 +100,11 @@ impl Embed {
96100
97101 match exec_result {
98102 Err ( _) => Err ( EmbedError :: CatchError ) ,
103+ #[ cfg( not( php82) ) ]
104+ Ok ( 0 ) => Ok ( ( ) ) ,
105+ #[ cfg( php82) ]
99106 Ok ( true ) => Ok ( ( ) ) ,
100- Ok ( false ) => Err ( EmbedError :: ExecuteScriptError ) ,
107+ Ok ( _ ) => Err ( EmbedError :: ExecuteScriptError ) ,
101108 }
102109 }
103110
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ fn test_sapi() {
4444 }
4545
4646 unsafe {
47+ #[ cfg( not( php82) ) ]
48+ php_module_startup ( sapi, module, 1 ) ;
49+ #[ cfg( php82) ]
4750 php_module_startup ( sapi, module) ;
4851 }
4952
You can’t perform that action at this time.
0 commit comments