Mantis - Quercus
Viewing Issue Advanced Details
2986 major always 10-02-08 12:04 10-02-08 13:45
koreth  
nam  
normal  
closed 3.2.1  
fixed  
none    
none 3.2.1  
0002986: Array expression fails to compile
<?php
$a = array('b' => array('c' => array()));
$a['b']['c']['d'] = 1;

Throws an exception:

[12:02:47.082] {resin-24} java.lang.UnsupportedOperationException: com.caucho.quercus.expr.ProArrayGetGetExpr$1
[12:02:47.082] {resin-24} at com.caucho.quercus.expr.GenerateExpr.generateAssignOpen(GenerateExpr.java:305)
[12:02:47.082] {resin-24} at com.caucho.quercus.expr.ProArrayGetGetExpr$1.generateAssign(ProArrayGetGetExpr.java:203)
[12:02:47.082] {resin-24} at com.caucho.quercus.expr.ProAssignExpr$1.generateTop(ProAssignExpr.java:90)
[12:02:47.082] {resin-24} at com.caucho.quercus.expr.GenerateExpr.generateStatement(GenerateExpr.java:360)
[12:02:47.082] {resin-24} at com.caucho.quercus.statement.ProExprStatement$1.generateImpl(ProExprStatement.java:92)
[12:02:47.082] {resin-24} at com.caucho.quercus.statement.StatementGenerator.generate(StatementGenerator.java:92)
[12:02:47.082] {resin-24} at com.caucho.quercus.statement.ProBlockStatement$1.generateImpl(ProBlockStatement.java:106)
[12:02:47.082] {resin-24} at com.caucho.quercus.statement.StatementGenerator.generate(StatementGenerator.java:92)
[12:02:47.082] {resin-24} at com.caucho.quercus.gen.QuercusMain.generate(QuercusMain.java:117)
[12:02:47.082] {resin-24} at com.caucho.java.gen.BaseClass.generateComponents(BaseClass.java:253)
[12:02:47.082] {resin-24} at com.caucho.java.gen.BaseClass.generateClassContent(BaseClass.java:240)
[12:02:47.082] {resin-24} at com.caucho.java.gen.BaseClass.generate(BaseClass.java:228)
[12:02:47.082] {resin-24} at com.caucho.java.gen.GenClass.generate(GenClass.java:123)
[12:02:47.082] {resin-24} at com.caucho.java.gen.JavaClassGenerator.generate(JavaClassGenerator.java:286)
[12:02:47.082] {resin-24} at com.caucho.quercus.gen.QuercusGenerator.generate(QuercusGenerator.java:117)
[12:02:47.082] {resin-24} at com.caucho.quercus.page.ProPageManager$CompileThread.run(ProPageManager.java:274)
[12:02:47.082] {resin-24} at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:759)
[12:02:47.082] {resin-24} at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:681)
[12:02:47.082] {resin-24} at java.lang.Thread.run(Thread.java:619)

Notes
(0003487)
nam   
10-02-08 13:45   
php/344z