solder icon indicating copy to clipboard operation
solder copied to clipboard

Library to help you build php extensions using Rust

Results 6 solder issues
Sort by recently updated
recently updated
newest added

https://github.com/php/php-src/blob/master/ext/standard/info.c#L1111-L1146

If take example and `hello_world` function like this: ```php ``` It will crash with segmentation fault (core dumped) looks like problem in add_zend_value_zval

The patch described in #5 works on my machine.

`solder::zend::php_echo` is implemented as: php_printf(c_message.as_bytes_with_nul().as_ptr() as *const i8); but it should be something like: php_printf(c_str!("%s"), c_message.as_bytes_with_nul().as_ptr() as *const i8); (Please check that this works before using it; it's untested unsafe...

Several APIs inside solder should be marked unsafe, but aren't. From the Nomicon: > The `unsafe` keyword has two uses: to declare the existence of contracts the compiler can't check,...