Skip to content

Preloading with internal class alias triggers assertion failure #18567

Open
@DanielEScherzer

Description

@DanielEScherzer

Description

The following code:

preload.php:

<?php
class_alias('Stringable', 'MyStringable');

Resulted in this output:

php: /usr/src/php83/ext/opcache/ZendAccelerator.c:3907: preload_link: Assertion `ce->type != 1' failed.
Aborted (core dumped)

When invoked with: php -d opcache.enable=1 -d opcache.enable_cli=1 -d "zend_extension=opcache.so" -d opcache.preload=/var/www/html/preload.php -v

But I expected this output instead:

[not a segfault]

PHP Version

PHP @ 8da9530

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