File tree Expand file tree Collapse file tree 5 files changed +24
-3
lines changed Expand file tree Collapse file tree 5 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ The framework that allows us to write PHP extensions using pure and safe Rust wh
1818
1919### Necessary
2020
21- - ** rust** 1.65 or later
21+ - ** rust** 1.79 or later
2222- ** libclang** 9.0 or later
2323- ** php** 7.0 or later
2424
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ fn main() {
4747 // Block the `zend_startup` because it fails checks.
4848 . blocklist_function ( "zend_startup" )
4949 // Block the `zend_random_bytes_insecure` because it fails checks.
50- . blocklist_function ( "zend_random_bytes_insecure" )
50+ . blocklist_item ( "zend_random_bytes_insecure" )
5151 . clang_args ( & includes)
5252 . derive_default ( true ) ;
5353
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ repository = { workspace = true }
2222license = { workspace = true }
2323
2424[dependencies ]
25+ cfg-if = " 1.0.0"
2526derive_more = " 0.99.18"
2627indexmap = " 2.3.0"
2728once_cell = " 1.19.0"
Original file line number Diff line number Diff line change @@ -890,7 +890,25 @@ unsafe extern "C" fn create_object(ce: *mut zend_class_entry) -> *mut zend_objec
890890 let object = state_object. as_mut_object ( ) . as_mut_ptr ( ) ;
891891 zend_object_std_init ( object, ce) ;
892892 object_properties_init ( object, ce) ;
893- rebuild_object_properties ( object) ;
893+
894+ cfg_if:: cfg_if! {
895+ if #[ cfg( any(
896+ phper_major_version = "7" ,
897+ all(
898+ phper_major_version = "8" ,
899+ any(
900+ phper_minor_version = "0" ,
901+ phper_minor_version = "1" ,
902+ phper_minor_version = "2" ,
903+ phper_minor_version = "3" ,
904+ ) ,
905+ )
906+ ) ) ] {
907+ rebuild_object_properties( object) ;
908+ } else {
909+ rebuild_object_properties_internal( object) ;
910+ }
911+ }
894912
895913 // Set handlers
896914 let mut handlers = Box :: new ( std_object_handlers) ;
Original file line number Diff line number Diff line change @@ -184,6 +184,8 @@ impl FunctionEntry {
184184 arg_info : Box :: into_raw ( infos. into_boxed_slice ( ) ) . cast ( ) ,
185185 num_args : arguments. len ( ) as u32 ,
186186 flags,
187+ frameless_function_infos : null_mut ( ) ,
188+ doc_comment : null_mut ( ) ,
187189 }
188190 }
189191
You can’t perform that action at this time.
0 commit comments