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 (access null pointer) in ext/spl/spl_array.c #15833

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?phpclass C {publicint$a;}$reflector =newReflectionClass(C::class);$obj =$reflector->newLazyProxy(function ($obj) {$obj =newC();return$obj;});$fusion =$obj;$recursiveArrayIterator =newRecursiveArrayIterator($fusion);$test =newRecursiveIteratorIterator($recursiveArrayIterator);var_dump($test->current());

Resulted in this output:

/php-src/ext/spl/spl_array.c:79:7: runtime error: member access within null pointer of type 'HashTable' (aka 'struct _zend_array')SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/spl/spl_array.c:79:7

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