Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Segmentation fault in Zend/zend_object_handlers.c #16040

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?phpset_error_handler(function($code,$msg) {$GLOBALS['a']=8;});trait Foo {publicstring$bar {get =>$fusion->getBar();}}class A {use Foo;}$a =newA();var_dump($a->bar);

Resulted in this output:

/php-src/Zend/zend_object_handlers.c:829:7: runtime error: member access within misaligned address 0xffffffffffffffff for type 'const zend_object_handlers' (aka 'const struct _zend_object_handlers'), which requires 8 byte alignment0xffffffffffffffff: note: pointer points here<memory cannot be printed>SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/Zend/zend_object_handlers.c:829:7 in

PHP Version

PHP 8.4.0-dev

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp