Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001624 [Quercus] major always 02-24-07 04:31 03-20-07 14:58
Reporter romaz View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.1 Product Version 3.1.0
  Product Build
Summary 0001624: StackOverflowError when assigning a value to an instance variable from __set()
Description If you try to access an object property from inside the "field interceptor" __set() method, you go in a infinite loop.
Steps To Reproduce
Additional Information Code to reproduce bug:

class Overloaded {
        function __set( $var, $value ) {
                $this->$var = $value;
        }
}

$o = new Overloaded();
$o->foo = 0;

Significative portion of the stacktrace (looping):
at com.caucho.quercus.program.Function.call(Function.java:264)
    at com.caucho.quercus.program.AbstractFunction.callMethod(AbstractFunction.java:208)
    at com.caucho.quercus.program.AbstractFunction.callMethod(AbstractFunction.java:394)
    at com.caucho.quercus.env.ObjectExtValue.putField(ObjectExtValue.java:307)
    at com.caucho.quercus.expr.ThisFieldExpr.evalAssign(ThisFieldExpr.java:130)
    at com.caucho.quercus.expr.AssignExpr.eval(AssignExpr.java:79)
    at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:63)
    at com.caucho.quercus.program.Function.callImpl(Function.java:316)
Attached Files

- Relationships

- Notes
(0001780)
nam
03-20-07 14:58

php/09k6
php/39k6
 

- Issue History
Date Modified Username Field Change
02-24-07 04:31 romaz New Issue
02-24-07 04:31 romaz Issue Monitored: romaz
03-20-07 14:04 nam Status new => assigned
03-20-07 14:04 nam Assigned To  => nam
03-20-07 14:58 nam Status assigned => closed
03-20-07 14:58 nam Note Added: 0001780
03-20-07 14:58 nam Resolution open => fixed
03-20-07 14:58 nam Fixed in Version  => 3.1.1


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