phper-framework / phper

The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
Other
293 stars 16 forks source link

PHP 8.2 support #58

Closed remicollet closed 1 year ago

remicollet commented 2 years ago

See https://github.com/apache/skywalking/issues/9755

error[E0425]: cannot find value `name_length` in this scope
   --> /dev/shm/BUILD/php82-php-pecl-skywalking-agent-0.1.0/mycargo/phper/src/ini.rs:255:9
    |
255 |         name_length,
    |         ^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `_zend_get_parameters_array_ex` in this scope
     --> /dev/shm/BUILD/php82-php-pecl-skywalking-agent-0.1.0/mycargo/phper/src/values.rs:135:13
      |
135   |               _zend_get_parameters_array_ex(num_args.try_into().unwrap(), arguments.as_mut_ptr());
      |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `zend_get_parameters_array_ex`
      |
     ::: /dev/shm/BUILD/php82-php-pecl-skywalking-agent-0.1.0/NTS/target/release/build/phper-sys-ddd865524bd4c63b/out/php_bindings.rs:35951:5
      |
35951 | /     pub fn zend_get_parameters_array_ex(param_count: u32, argument_array: *mut zval)
35952 | |         -> zend_result;
      | |______________________- similarly named function `zend_get_parameters_array_ex` defined here
jmjoy commented 2 years ago

PHP 8.2 will be supported after it stable released.

jmjoy commented 1 year ago

Supported since https://github.com/phper-framework/phper/pull/86