Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003644 [Quercus] minor always 08-21-09 02:42 08-27-09 12:29
Reporter tlandmann View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.2 Product Version 4.0.0
  Product Build
Summary 0003644: Quercus allows to make non-abstract function abstract again (incompatibility with standard PHP)
Description The following script renders an error in standard PHP 5.2.6:

Fatal error: Cannot make non abstract method test2::function1() abstract in class test3 in [...]/test6.php on line 19


In Quercus it executes and prints:

outer start
1
outer end



-----------------------

<?php

abstract class test1
{
    public abstract function function1();
}

class test2 extends test1
{
    public function function1()
    {
        echo "1\n";
    }
}

abstract class test3 extends test2
{
    public abstract function function1();
}

class test4 extends test3
{
    public function function1()
    {
        echo "outer start\n";
        parent::function1();
        echo "outer end\n";
    }
}

$testvar=new test4;

$testvar->function1();

?>
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0004188)
nam
08-27-09 12:29

php/09jh
 

- Issue History
Date Modified Username Field Change
08-21-09 02:42 tlandmann New Issue
08-27-09 12:29 nam Status new => assigned
08-27-09 12:29 nam Assigned To  => nam
08-27-09 12:29 nam Status assigned => closed
08-27-09 12:29 nam Note Added: 0004188
08-27-09 12:29 nam Resolution open => fixed
08-27-09 12:29 nam Fixed in Version  => 4.0.2


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