Skip to content

[BUGFIX] Make InstalledVersions work again#35

Merged
helhum merged 1 commit intoTYPO3:mainfrom
helhum:fix-installed-versions
Apr 17, 2026
Merged

[BUGFIX] Make InstalledVersions work again#35
helhum merged 1 commit intoTYPO3:mainfrom
helhum:fix-installed-versions

Conversation

@helhum
Copy link
Copy Markdown
Contributor

@helhum helhum commented Apr 17, 2026

When including multiple autoload.php files during
the same runtime, Composer InstalledVersions relies
on the registered autoloaders to be able to resolve
all available packages. If class alias loader is now
calling ->unregister API, the static registry of available
classes is removed, which does not reflect the state
when class alias loader is registered.

Therefore, we now call spl_autoload_unregister ourselves
instead of using the API, because the classes will
be loadable, just not directly but proxied through
class alias loader

When including multiple autoload.php files during
the same runtime, Composer InstalledVersions relies
on the registered autoloaders to be able to resolve
all available packages. If class alias loader is now
calling ->unregister API, the static registry of available
classes is removed, which does not reflect the state
when class alias loader is registered.

Therefore, we now call spl_autoload_unregister ourselves
instead of using the API, because the classes will
be loadable, just not directly but proxied through
class alias loader
@helhum helhum force-pushed the fix-installed-versions branch from bca43be to 031e30b Compare April 17, 2026 08:12
@helhum helhum merged commit 0a72567 into TYPO3:main Apr 17, 2026
10 checks passed
@helhum helhum deleted the fix-installed-versions branch April 17, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant