Skip to content

Preloading with internal class alias triggers assertion failure #18567

Closed

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

Activity

  1. self-assigned this
    on May 16, 2025
  2. added a commit that references this issue on May 17, 2025
    b417939
  3. added 3 commits that reference this issue on May 19, 2025
    43915b3
    94f5037
    41e11a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions