Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003157 [Quercus] minor always 12-12-08 08:51 12-14-08 10:08
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003157: unset() of local variable fails to compile
Description <?php
function foo() {
  $x = 1;
  unset($x);
}

Fails to compile under the latest Resin Pro:

[08:50:40.876] {resin-8} com.caucho.java.JavaCompileException: .../_unset__php.java:55: incompatible types
[08:50:40.876] {resin-8} found : com.caucho.quercus.env.NullValue
[08:50:40.876] {resin-8} required: long
[08:50:40.876] {resin-8} v_x = NullValue.NULL;
Additional Information
Attached Files

- Relationships

- Notes
(0003605)
koreth
12-12-08 08:54

The real-world use case for this is that one of our error handlers (which gets passed the local-variable context of the function with the error) checks for a couple of local variables to modify its logging behavior.
 
(0003619)
ferg
12-14-08 10:08

php/3229
 

- Issue History
Date Modified Username Field Change
12-12-08 08:51 koreth New Issue
12-12-08 08:54 koreth Note Added: 0003605
12-14-08 10:08 ferg Note Added: 0003619
12-14-08 10:08 ferg Assigned To  => ferg
12-14-08 10:08 ferg Status new => closed
12-14-08 10:08 ferg Resolution open => fixed
12-14-08 10:08 ferg Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker