Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anonymous class leaks if included many times #159

Open
mvorisek opened this issue Oct 5, 2021 · 0 comments
Open

Anonymous class leaks if included many times #159

mvorisek opened this issue Oct 5, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@mvorisek
Copy link
Contributor

mvorisek commented Oct 5, 2021

Anonymous class is created newly even if it's php AST remains the same when included by require multiple times.

Tests should test this by including file like:

<?php

new class() {
};

1000x times (2x is not enought, as php cache slots for new classes)

@Ocramius Ocramius added the bug Something isn't working label Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants