Mantis - Quercus
Viewing Issue Advanced Details
4319 minor always 12-07-10 17:20 12-07-10 17:22
closed 4.0.14  
none 4.0.14  
0004319: list($a) = each($this->foo)
(rep by Akara Sucharitakul)

I'm testing the pro version on Ubuntu 10.04 both Sun and IBM JVMs, Tomcat 6.0.29 and ran into some snag. The first time I load the page things are OK. The second time I get a blank page. The error in the catalina.out is as follows:

INFO: /home/akara/opt/apache-tomcat-6.0.29/webapps/qphp/recovery/public/includes/core/Page.php:91: Fatal Error: list() expression for a loop must be a variable at 'this->blocklist

The offending code is attached. The line has a weired:

while (list($blockname, $content) = each($this->blocklist)) {

If I take the license out of the web.xml and restart Tomcat running Quercus in interpreted mode, this all works fine. So it seems to have something to do with the compiler.

There are no notes attached to this issue.