Corruption of data when returning from function
|Reported by:||nobody||Owned by:||nobody|
Hi Y'all I've come across an interesting corruption of data when using the debugger 'step into' feature. The effect doesn't occur when the function call in question is 'stepped over', so I'm certain it isn't the code, or the debugger. The function in question is handed an ID for a MySQL database record by the ::main() PHP script. This function then calls another function with this ID as a parameter which in turn accesses the database and returns the data relevant to the ID. The data returned is a price for a component. It is fetched correctly by the innermost function (eg 29.99), and returned to the second level function as per usual in function calls. The second level function then returns the price to ::main(), but when the variable is examined in ::main() it has suddenly been converted into '2005-01-03' or another such date. This, I'm guessing, is not the intended functionality of the plugin or the debugger. As I say, this doesn't occur when the function call in ::main() is stepped over, only when it is stepped into. Is this a known bug, or is it something new?
Change History (3)
Note: See TracTickets for help on using tickets.