Mantis - Quercus
Viewing Issue Advanced Details
3323 major always 02-05-09 14:53 02-05-09 15:14
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003323: Boolean variable compile failure
<?php
function x() {
  $foo = true || false;
  if ($foo) print "x";
}

Fails to compile:

[14:52:48.275] {resin-22} com.caucho.java.JavaCompileException: .../_boolean__php.java:60: boolean cannot be dereferenced
[14:52:48.275] {resin-22} if (v_foo.toBoolean()) {
[14:52:48.275] {resin-22} ^

Notes
(0003807)
nam   
02-05-09 15:14   
php/3aau