Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005409 [Quercus] minor always 03-28-13 06:06 03-28-13 06:07
Reporter nam View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.35
Summary 0005409: static::$foo needs to return child's field when inside parent:: methods
Description (rep by V. Spivak)

Compiled mode is returning wrong value (123). Intepreted mode returns the correct value (456).

class A
{
  static $foo = 123;
  
  function fun()
  {
    echo "inside A->fun()\n";
    var_dump(static::$foo);
  }
}

class B extends A
{
  static $foo = 456;
  
  function fun()
  {
    echo "inside B->fun()\n";
    var_dump(static::$foo);

    parent::fun();
  }
}

$b = new B();
$b->fun();
Additional Information
Attached Files

- Relationships

- Notes
(0006230)
nam
03-28-13 06:07

php/39y4
 

- Issue History
Date Modified Username Field Change
03-28-13 06:06 nam New Issue
03-28-13 06:06 nam Status new => assigned
03-28-13 06:06 nam Assigned To  => nam
03-28-13 06:07 nam Status assigned => closed
03-28-13 06:07 nam Note Added: 0006230
03-28-13 06:07 nam Resolution open => fixed
03-28-13 06:07 nam Fixed in Version  => 4.0.36


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