File tree Expand file tree Collapse file tree
packages/php-ext-wp-mysql-parser/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1286,8 +1286,7 @@ unsafe extern "C" fn ast_get_gc(
12861286 // references; mutating refcounts here would un-balance the
12871287 // collector's accounting.
12881288 let mut zv: zval = std:: mem:: zeroed ( ) ;
1289- zv. value . obj =
1290- ( boxed. as_ref ( ) as * const ZendObject ) as * mut zend_object as * mut _ ;
1289+ zv. value . obj = ( boxed. as_ref ( ) as * const ZendObject ) as * mut zend_object as * mut _ ;
12911290 zv. u1 . type_info = PHP_IS_OBJECT_EX ;
12921291 zend_get_gc_buffer_add_zval ( buf, & mut zv) ;
12931292 }
@@ -1308,7 +1307,9 @@ fn install_ast_gc_handler() -> PhpResult<()> {
13081307 let class_mut = ( class as * const zend_class_entry ) as * mut zend_class_entry ;
13091308 let default = ( * class_mut) . default_object_handlers ;
13101309 if default. is_null ( ) {
1311- return Err ( php_error ( "WP_MySQL_Native_Ast has no default object handlers" ) ) ;
1310+ return Err ( php_error (
1311+ "WP_MySQL_Native_Ast has no default object handlers" ,
1312+ ) ) ;
13121313 }
13131314 let mut patched = std:: ptr:: read ( default) ;
13141315 patched. get_gc = Some ( ast_get_gc) ;
You can’t perform that action at this time.
0 commit comments