We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b192e8 commit 62c1aa7Copy full SHA for 62c1aa7
src/binary.rs
@@ -149,7 +149,7 @@ macro_rules! pack_impl {
149
unsafe impl Pack for $t {
150
fn pack_into(vec: Vec<Self>) -> *mut zend_string {
151
let len = vec.len() * ($d as usize / 8);
152
- let ptr = Box::into_raw(vec.into_boxed_slice());
+ let ptr = vec.as_ptr();
153
unsafe { ext_php_rs_zend_string_init(ptr.cast(), len as _, false) }
154
}
155
0 commit comments