We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778ee69 commit f6b0a52Copy full SHA for f6b0a52
1 file changed
packages/php-ext-wp-mysql-parser/src/lib.rs
@@ -1942,6 +1942,7 @@ impl WpMySqlNativeParser {
1942
}
1943
.into_zval(false)
1944
.map_err(php_error)?;
1945
+ 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 {
@@ -1950,7 +1951,6 @@ impl WpMySqlNativeParser {
1950
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
- let native_ast = native_ast(&native_ast_zval)?;
1954
native_ast.arena.create_php_ast(&native_ast_zval)
1955
})
1956
0 commit comments