Bug #79349 [NEW]: Unlinked anonymous classes prevent using preloading
From: nicolasgrekas
Operating system:
PHP version: 7.4.3
Package: opcache
Bug Type: Bug
Bug description:Unlinked anonymous classes prevent using preloading
Description:
------------
Following https://bugs.php.net/78937, commit
20ef51db22c46fd45976eb6d0b780c14022c8873 added a new runtime exception
that says:
> Fatal error: Class foo wasn't preloaded
I don't how to deal with this exception. I feel like this is a blocker
that prevents using preloading when the preloading strategy is base on
composer+autoloading. This hits Symfony.
Would it be possible to have nested anonymous classes be loaded at
runtime?
This would allow the autoloader to load their dependencies, thus solving
the issue.
--
Edit bug report at https://bugs.php.net/bug.php?id=79349&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79349&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79349&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79349&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79349&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79349&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79349&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79349&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79349&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79349&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79349&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79349&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79349&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79349&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79349&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79349&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79349&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79349&r=mysqlcfg
Thread (9 messages)
- nicolasgrekas@php.net