Bug: reference map - reusing items
Closed this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. transfer an object with two referenced subobjects from Java -> PHP
2. transfer an other object with the same two subobjects
What is the expected output? What do you see instead?
expected: the referenced objects are taken from the reference map
see: the referenced objects are twisted or null
What version of the product are you using? On what operating system?
Version: 2.0.3
System Ubuntu 10.10
PHP: 5.3.2
Please provide any additional information below.
I located the bug in the /src/Hessian2/Hessian2Parser.php, where a reference
into the refmap array is created, which will be overwritten later without being
reinitialized, which changes the referenced content of the refmap, too.
I added two patches, each one solves the problem in an other way.
Original issue reported on code.google.com by ruben.wa...@googlemail.com
on 29 Apr 2011 at 9:08
Attachments:
GoogleCodeExporter commented
Hi,
I ran some tests with referenced objects and found no unusual behaviour,
however, I incorporated your second patch (unset), ran the tests again (unit
and custom) and it seems to work fine. I've included my test projects in case
you want to verify, it handles referenced objects and circular references as
well. Hope the issue is fixed now. Thanks a lot for your support!
Original comment by vegeta...@gmail.com
on 9 Jul 2011 at 6:04
- Changed state: Fixed
Attachments: