Skip to content

Commit 50189eb

Browse files
committed
Pass &mut ZendObject to Zval::set_object in ext-php-rs 0.15
1 parent ea2a4d1 commit 50189eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ fn zval_from_object_addref(obj: &ZendObject) -> Zval {
12371237
// 32-bit refcount; bump it to claim our share before exposing the
12381238
// pointer to PHP.
12391239
(*ptr).gc.refcount += 1;
1240-
zv.set_object(ptr);
1240+
zv.set_object(&mut *ptr);
12411241
}
12421242
zv
12431243
}

0 commit comments

Comments
 (0)