Invenzzia »

IMPORTANT ANNOUNCEMENT

Due to the uncertain status of the Flyspray project, lack of new releases and moving the code repository to Github, we decided to shutdown this issue tracker by the end of January 2011. From that date, the bugs should be reported directly in Github project repositories.

List of repositories:

Open Power Template 2.x family

PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!

Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
Tasklist

FS#145 - Opt_Xml_Scannable::insertBefore() adds a node twice

Attached to Project: Open Power Template
Opened by Zyx (Zyx) - Wednesday, 23 December 2009, 00:36 GMT-8
Last edited by Zyx (Zyx) - Wednesday, 23 December 2009, 00:44 GMT-8
Task Type Bug Report
Category Compiler
Status Closed
Assigned To Zyx (Zyx)
Operating System OS-independent
Severity High
Priority High
Reported Version 2.0.3
Due in Version 2.0.4
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If the reference node in Opt_Xml_Scannable::insertBefore() is specified as an object, the new node is added twice before it. This happens, because the loop is not stopped after adding a node, and once we create a hole in the array index enumeration, in the next loop we jump right into the same reference node that has been already moved. To fix the problem, we just need to break the loop.
This task depends upon

Closed by  Zyx (Zyx)
Wednesday, 23 December 2009, 00:44 GMT-8
Reason for closing:  Fixed
Additional comments about closing:  Fixed in rev. 272

Loading...