Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003332 [Quercus] block always 02-09-09 11:17 02-09-09 11:52
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 4.0.0
  Product Build
Summary 0003332: Autoinitialized static fields fail to compile
Description <?php
class x {
  static $y = 1;
}

throws this exception:

[11:15:45.386] {resin-20} java.lang.ClassCastException: com.caucho.quercus.program.ClassDef$StaticFieldEntry cannot be cast to com.caucho.quercus.expr.CompilingExpr
[11:15:45.386] {resin-20} at com.caucho.quercus.program.ProClassDef.generate(ProClassDef.java:222)
[11:15:45.386] {resin-20} at com.caucho.quercus.gen.QuercusMain.generate(QuercusMain.java:177)
[11:15:45.386] {resin-20} at com.caucho.java.gen.BaseClass.generateComponents(BaseClass.java:253)
[11:15:45.386] {resin-20} at com.caucho.java.gen.BaseClass.generateClassContent(BaseClass.java:240)
[11:15:45.386] {resin-20} at com.caucho.java.gen.BaseClass.generate(BaseClass.java:228)
[11:15:45.386] {resin-20} at com.caucho.java.gen.GenClass.generate(GenClass.java:124)
[11:15:45.386] {resin-20} at com.caucho.java.gen.JavaClassGenerator.generate(JavaClassGenerator.java:286)
[11:15:45.386] {resin-20} at com.caucho.quercus.gen.QuercusGenerator.generate(QuercusGenerator.java:138)
[11:15:45.386] {resin-20} at com.caucho.quercus.gen.QuercusGenerator.generate(QuercusGenerator.java:92)
[11:15:45.386] {resin-20} at com.caucho.quercus.page.ProPageManager$GenerateThread.generateCode(ProPageManager.java:339)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003818)
nam
02-09-09 11:52

php/39b0
 

- Issue History
Date Modified Username Field Change
02-09-09 11:17 koreth New Issue
02-09-09 11:49 nam Status new => assigned
02-09-09 11:49 nam Assigned To  => nam
02-09-09 11:52 nam Status assigned => closed
02-09-09 11:52 nam Note Added: 0003818
02-09-09 11:52 nam Resolution open => fixed
02-09-09 11:52 nam Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker