Skip to content

Segmentation fault when comparing FFI object #16397

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$ffi = FFI::scope("TEST_300");
$ffi->printf("Hello World from %s!\n", "PHP");
$fusion = $ffi;
var_dump($fusion != 1);
?>

Resulted in this output:

Segmentation fault (core dumped)

To reproduce:

-d "zend_extension=/php-src/modules/opcache.so" -d "ffi.enable=1" -d "opcache.enable=1" -d "opcache.enable_cli=1" -d "opcache.preload=/php-src/tests/fused/preload.inc"

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions