Skip to content

Multiple missing _Float64x type errors in phper-sys #71

@AshleySchaeffer

Description

@AshleySchaeffer

I just tried compiling the hello example against PHP 8 and PHP 7.4 and got this 54 times when compiling php-sys. I noticed in the build.rs of php-sys _Float64x is declared as a blocked item but when not blocked, it translates to a u128 which isn't FFI safe.

error[E0412]: cannot find type `_Float64x` in this scope
    --> /home/ps/dev/phper/target/debug/build/phper-sys-89df922599ad3f64/out/php_bindings.rs:9716:60
     |
3039 | pub type _Float64 = f64;
     | ------------------------ similarly named type alias `_Float64` defined here
...
9716 |     pub fn f64fmaf64x(__x: _Float64x, __y: _Float64x, __z: _Float64x) -> _Float64;
     |                                                            ^^^^^^^^^ help: a type alias with a similar name exists: `_Float64`

I've tried this with phper 0.6.0 and 0.5.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions