Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 146022

Summary: debug pointer jumps between running debug sessions
Product: z_Archived Reporter: Igor Leznik <igor>
Component: PDTAssignee: Shalom Gibly <shalom>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 Keywords: plan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Igor Leznik CLA 2006-06-08 11:10:59 EDT
have the following php code:
<?
for($i = 100000; $i > 0; $i--){
  echo $i."\n";
  sleep(1);
}
?>
-run to debug sessions on the file at the same time.
-Pause both sessins.
-make 'step over'
*** The debug pointer jumps between the sessions.
Comment 1 moshe CLA 2007-02-18 06:38:35 EST
change the hashCode(0 method in PHPStackFrame(line 332) :

    public int hashCode() {
        return getSourceName().hashCode() + fThread.hashCode();
    }
Comment 2 Shalom Gibly CLA 2007-02-18 06:49:33 EST
Applied the fix. 
This bug also occurred under Windows systems.

Thanks Moshe!
Comment 3 Gadi Goldbarg CLA 2007-02-20 11:30:04 EST
verified - Close with last tag
Comment 4 Gadi Goldbarg CLA 2007-02-20 16:53:13 EST
fixed