Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2010 at 05:13 UTC
Updated:
1 Oct 2010 at 14:50 UTC
When scanning files for classes to be available for autoloading, _registry_parse_file() will ignore perfectly valid classes defined as final. So for example, the registry will pick up
class NodeController extends DrupalDefaultEntityController {
but if it were ever changed to
final class NodeController extends DrupalDefaultEntityController {
then the registry would ignore it. As of my last grep, core does not include any final classes, but I'm marking this critical because it could cause very odd, confusing blow-ups in contrib if not dealt with. The attached patch fixes the relevant regex.
| Comment | File | Size | Author |
|---|---|---|---|
| final_classes_in_registry.patch | 721 bytes | sdboyer |
Comments
Comment #1
grendzy commentedmakes sense to me.
Comment #2
chx commentedBefore someone asks, what else can be there here are lines 329-333 from PHP 5.3 grammar:
So now we are done. (interfaces can't have any of this)
Comment #3
dries commentedCommitted to CVS HEAD. Thanks.