Skip to content

_ZendTestClass::test() segfaults on named parameter #16266

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$a = new _ZendTestClass();
$fusion = $a;
var_dump($fusion->test('a', 'b', c: 'c'));

Resulted in this output:

/php-src/Zend/zend_execute.c:5308:40: runtime error: applying zero offset to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/Zend/zend_execute.c:5308:40

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