Skip to content

Commit a5fe11f

Browse files
committed
DEBUG: disable install_gc_handler_for to localize CI failure
1 parent f6b0a52 commit a5fe11f

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

  • packages/php-ext-wp-mysql-parser/src

packages/php-ext-wp-mysql-parser/src/lib.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,14 +1943,13 @@ impl WpMySqlNativeParser {
19431943
.into_zval(false)
19441944
.map_err(php_error)?;
19451945
let native_ast = native_ast(&native_ast_zval)?;
1946-
// Install our custom `get_gc` so PHP's cycle collector can
1947-
// see the cached wrappers held by the Rust-side HashMap.
1948-
unsafe {
1949-
let obj_ref = native_ast_zval
1950-
.object()
1951-
.ok_or_else(|| php_error("Native AST zval is not an object"))?;
1952-
install_gc_handler_for((obj_ref as *const ZendObject) as *mut zend_object);
1953-
}
1946+
// GC handler install temporarily disabled to localize a CI failure.
1947+
// unsafe {
1948+
// let obj_ref = native_ast_zval
1949+
// .object()
1950+
// .ok_or_else(|| php_error("Native AST zval is not an object"))?;
1951+
// install_gc_handler_for((obj_ref as *const ZendObject) as *mut zend_object);
1952+
// }
19541953
native_ast.arena.create_php_ast(&native_ast_zval)
19551954
})
19561955
}

0 commit comments

Comments
 (0)