Closed GoogleCodeExporter closed 8 years ago
What server are you using?
Original comment by evert...@gmail.com
on 26 Jun 2009 at 9:04
Looking through the AMF0 deserializer, I realize there are a couple of issues
* Object (and typed object) references are added to the reference list after they
are deserialized. This *could* be an issue for nested references (rare, but
possible)
* Arrays (and mixed arrays) need to be added to the reference list
Original comment by evert...@gmail.com
on 26 Jun 2009 at 9:27
Original comment by evert...@gmail.com
on 26 Jun 2009 at 9:28
Please try the trunk version. I believe it will fix your issue
Original comment by evert...@gmail.com
on 26 Jun 2009 at 9:33
[deleted comment]
Trunk #226 didn't fix the issue.
Content is available only 'till 23:50 CEST, after that time I'll have to test
with the provided binary data, too. (I
have no control on the server that provides data)
Original comment by j0t...@gmail.com
on 26 Jun 2009 at 9:49
Are you getting the exact same error?
This is my test script:
{{{
<?php
require_once 'SabreAMF/Message.php';
$stream = new SabreAMF_InputStream(file_get_contents('data.out'));
$message = new SabreAMF_Message();
$message->deserialize($stream);
print_r($message);
?>
}}}
Original comment by evert...@gmail.com
on 26 Jun 2009 at 10:00
trunk #227 works!
Original comment by j0t...@gmail.com
on 26 Jun 2009 at 10:06
Also, make absolutely sure you are running the trunk version. I've had a case
once
where I had SabreAMF installed as a PEAR lib, and in a relative directory. Due
to the
order of include_path the PEAR version got picked
Original comment by evert...@gmail.com
on 26 Jun 2009 at 10:06
Yes, that was what happened: I had release version in the SabreAMF directory,
and trunk in SabreAMF2. In the
test script I required SabreAMF2/Message.php, but internal require instructions
in the SabreAMF library caused it
to load all files other than Message.php from the SabreAMF directory, so it
loaded the new Message.php but the
old other files :)
Original comment by j0t...@gmail.com
on 26 Jun 2009 at 10:16
Original comment by evert...@gmail.com
on 27 Jun 2009 at 10:40
Original issue reported on code.google.com by
j0t...@gmail.com
on 26 Jun 2009 at 8:46Attachments: