Opened 8 years ago

Last modified 5 years ago

#259 new Bugs (None)

redeclaration of method not detected by PHPEclipse parser

Reported by: nobody Owned by: ed_mann
Priority: 5 Milestone: 1.5.0
Component: PHP Parser Version: None
Keywords: parser Cc:

Description (last modified by ed_mann)

The PHPEclipse parser does not flag the existance of
multiple identical declarations of the same method as
an error. At least under PHP 4.8.x this is caught bu
the PHP interpreter and produces a fatal error.

My PHPEclipse version is 1.3 

<?php
// ==========Begin example ==========

class CRepeatableBugCase
{

    function DuplicateMethod($bolBoolean)
    {
         return true;
    }  // func: DuplicateMethod : declaration 1

    function DuplicateMethod($bolBoolean)
    {
         return true;
    }  // func: DuplicateMethod: declaration 2

} // class: CRepeatableBugCase

// ========== End example ===========
?>

Change History (4)

comment:1 Changed 6 years ago by emann

Logged In: YES 
user_id=430467
Originator: NO

This is still broken as of 1.1.9 CVS. Will be working on it.

comment:2 Changed 5 years ago by ed_mann

  • billable set to 0
  • Description modified (diff)
  • Owner changed from emann to ed_mann
  • Status changed from assigned to new

comment:3 Changed 5 years ago by ed_mann

  • Keywords parser added
  • os_platform set to Linux

Just adding some tags to help group bugs together

comment:4 Changed 5 years ago by ed_mann

  • Milestone set to 1.5.x
Note: See TracTickets for help on using tickets.