Skip to content

Adding new Zend API functions to the allowed_bindings and/or FFI #403

@dragoonis

Description

@dragoonis

Hey

I'm trying to call this zend function from the ext-php-rs: zend_string_starts_with

https://heap.space/xref/PHP-8.4/Zend/zend_string.h?r=db545767e57d74e7ec0e1817a208d0d44e0932e6&fi=zend_string_starts_with#408

I'm trying to do this

use ext_php_rs::ffi::{
    zend_string_starts_with
};

However, I'm getting this

11 |     zend_string_starts_with
   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `zend_string_starts_with` in `ffi`

I believe this is because it's not inside allowed_bindings.rs

Surely there is a way I can add the allowed bindings, to bring across.

Please advise how I can make zend_string_starts_with available to my rust PHP extension code.

Thanks in advance.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions