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

Broken RC inference for op1 of FETCH_OBJ with magic methods #17151

Closed
@iluuu1994

Description

@iluuu1994

Description

The following code:

<?phpclass C {publicfunction__get($name) {return$this;    }}functiontest() {$x = (newC)->bar;var_dump($x);}test();

Resulted in this output:

php: Zend/zend_objects_API.c:162: zend_objects_store_del: Assertion `zend_gc_refcount(&(object)->gc) == 0' failed.

But I expected this output instead:

object(C)#%d (0) {}

The problem here is that we don't create a new definition for op1 for FETCH_OBJ. This was discovered during development ofGH-17130.

PHP Version

PHP 8.2+

Operating System

No response

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