diff --git a/src/zend/methods.rs b/src/zend/methods.rs index ac33f11..7162bc0 100644 --- a/src/zend/methods.rs +++ b/src/zend/methods.rs @@ -9,7 +9,7 @@ use std::ffi::CString; pub fn php_echo(message: &str) { let c_message = CString::new(message).unwrap(); unsafe { - php_printf(c_message.as_bytes_with_nul().as_ptr() as *const i8); + php_printf(c_str!("%s"), c_message.as_bytes_with_nul().as_ptr() as *const i8); } } @@ -188,4 +188,4 @@ fn add_zend_value_to_zval(value: ZendValue, zval: &mut Zval) { zval.type_info = zval_from_value.type_info; zval.u2 = zval_from_value.u2; } -} \ No newline at end of file +}