ext-php-rs icon indicating copy to clipboard operation
ext-php-rs copied to clipboard

Bindings for the Zend API to build PHP extensions natively in Rust.

Results 66 ext-php-rs issues
Sort by recently updated
recently updated
newest added

Hi @davidcole1340, Excellent library, it has been fun building PHP extensions in Rust thanks to your work. I was wondering if you had ever explored the possibility of adding a...

If the params comes from php, then I think it's safe to impl send and sync for ZendCallable? because all the variables are managed by php runtime.

When I use `cargo php install` on GitHub Action, I get this error, [here](https://github.com/apache/incubator-opendal/actions/runs/5806993239/job/15741005484) are CI log link. I know this is due to permission issues, but since cargo is...

When I want to custom the exception use the bellow code, that's copy from https://davidcole1340.github.io/ext-php-rs/macros/classes.html#example ```rust #![cfg_attr(windows, feature(abi_vectorcall))] extern crate ext_php_rs; use ext_php_rs::prelude::*; use ext_php_rs::{exception::PhpException, zend::ce}; #[php_class(name = "Redis\\Exception\\RedisException")] #[extends(ce::exception())]...

How to add static property and method? ``` #[static_] pub fn hello( q: String) -> String { format!("hello {}", q) }

there is a similar issue [https://github.com/davidcole1340/ext-php-rs/issues/193](https://github.com/davidcole1340/ext-php-rs/issues/193), I followed its example, but don't get lucky. here is what I tried ``` pub fn render(#[this] this: &mut ZendClassObject, vars: &mut ZendObject) ->...

The document says if IS_TYPE_REFCOUNTED not set, the zval is scalar, is there a quick way do this job ? currently I check it by these methods, is_null, is_long ,...

Hello there, Absolute Rust noob out here! ;) I'm playing around with these bindings and notice I can't really get a way around this structure: ```rust #[php_class(name="Wasm\\InstanceBuilder")] #[derive(Default)] pub struct...

I am trying to build an extension for windows using the same GitHub workflow used by this project. But PHP is refusing to load the module due to linker version...

CONST_CS, CONST_DEPRECATED, CONST_NO_FILE_CACHE, CONST_PERSISTENT, IS_ARRAY, IS_CALLABLE, | ^^^^^^^^^^^^^^^^ no `CONST_DEPRECATED` in `ffi`