Mantis - Quercus
Viewing Issue Advanced Details
2857 major always 08-20-08 21:21 08-21-08 06:55
koreth  
nam  
normal  
closed 3.2.1  
fixed  
none    
none 3.2.1  
0002857: Can't compile class with magic set/get/call methods
<?php
class Test {
  function __call($function, $args) { }
  function __set($key, $value) { }
  function __get($key) { }
}

Fails to compile:

[21:18:22.452] {resin-4} com.caucho.java.JavaCompileException: .../_quercus/_test__php.java:45: cannot find symbol
[21:18:22.452] {resin-4} symbol : variable fun___get
[21:18:22.452] {resin-4} location: class _quercus._test__php.quercus_Test_0
[21:18:22.452] {resin-4} cl.setFieldGet(fun___get);
[21:18:22.452] {resin-4} ^
[21:18:22.452] {resin-4} .../_quercus/_test__php.java:47: cannot find symbol
[21:18:22.452] {resin-4} symbol : variable fun___set
[21:18:22.452] {resin-4} location: class _quercus._test__php.quercus_Test_0
[21:18:22.452] {resin-4} cl.setFieldSet(fun___set);
[21:18:22.452] {resin-4} ^
[21:18:22.452] {resin-4} .../_quercus/_test__php.java:49: cannot find symbol
[21:18:22.452] {resin-4} symbol : variable fun___call
[21:18:22.452] {resin-4} location: class _quercus._test__php.quercus_Test_0
[21:18:22.452] {resin-4} cl.setCall(fun___call);
[21:18:22.452] {resin-4} ^

Notes
(0003346)
nam   
08-21-08 06:55   
php/39k0
php/39k1
php/39k2