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

Solves: https://github.com/davidcole1340/ext-php-rs/issues/262

First of all: Thank you for the great work! It's very interesting and promising. While testing a simple extension's runtime (measuring time in php script) and running the script multiple...

Hi I tested with xdebug profile option with grind cache. Functions are slower than c. How to speed up?

Is there an example available to show how to implement an iterator for a Rust object that would work in the PHP side using `foreach`? Just naively implementing the [Iterator](https://www.php.net/manual/en/class.iterator.php)...

Given a function like this: ```rust #[php_function()] pub fn foo(a: String, b: Option) -> PhpResult { ... } ``` The generated stub looks like this: ```php namespace { function foo(string...

This adds an EnumBuilder to create PHP enums, and a `#[php_enum]` macro which you can attach to Rust enums. Only symbolic enums are supported from Rust. PHP doesn't support enums...

Hi @davidcole1340, I'm wondering why php 8 enums were not implemented, is there some issue with defining an enum in an extension? Asking because I am currently working on it...

``` [daniil@arch-lenovo ext-php-rs]$ cargo test --all-features --no-fail-fast --test module Finished test [unoptimized + debuginfo] target(s) in 0.25s Running tests/module.rs (target/debug/deps/module-d6deba67b910978c) running 1 test malloc_consolidate(): unaligned fastbin chunk detected error: test...

Is there a go-to solution for packaging the built extension? I'd like to offer a .deb package and I'm wondering if there is an easy way to do this. There...