Closed pct closed 12 years ago
Hi, I found the solution by myself.
just change line 2000: function yy_r78(){ $this->_retvalue = current($this->compiler->generate_variable_name($this->yystack[$this->yyidx + 0]->minor, false)); }
to: function yy_r78(){ $var = $this->compiler->generate_variable_name($this->yystack[$this->yyidx + 0]->minor, false); $this->_retvalue = current($var); }
Just replied to your merge request. I would recommend you to upgrade since future versions of Haanga will work only for php5.3.x+
Hello,
When I use Haanga on php 5.2.17 at some web hosting server, that cause:
Message: Only variables should be passed by reference File: Haanga/lib/Haanga/Compiler/Parser.php Line: 2000
Could you help to fix it? Thanks!