[SabreAMF] String references serializing AMF3
Evert | Rooftop
evertpot at gmail.com
Tue Nov 14 12:38:51 EST 2006
There's one big problem with this..
You have to check if 2 strings are actually references to each other..
If this is not the case, unexpected things might happen. If you do a
simple check if 2 strings contain the same data, the data will end up in
flex as references to each other..
If you would then change 'stringA', 'stringB' automatically gets
changed. I've never really needed to check if 2 variables are
referencing to the same thing in PHP, but I also could not find it in
the manual..
I'm going to see if I can get a bit more info on this.
Evert
Evert | Rooftop wrote:
> If your up for it, i'd happily accept a patch! I can also give you write
> access to subversion if you'd like to..
>
> Jim Mischel wrote:
>
>> SabreAMF currently does not cache strings and create references when
>> serializing AMF3. The writeString() function in
>> SabreAMF/AMF3/Serializer.php always writes the literal string. It
>> doesn't look terribly difficult to cache the strings so that
>> writeString() can create references if needed. Has anybody done this?
>> If so, I'd like to see the code. If not, I'll code it up.
>>
>> Jim
>>
>>
>>
>> _______________________________________________
>> sabreamf mailing list
>> sabreamf at osflash.org
>> http://osflash.org/mailman/listinfo/sabreamf_osflash.org
>>
>>
>
>
>
> _______________________________________________
> sabreamf mailing list
> sabreamf at osflash.org
> http://osflash.org/mailman/listinfo/sabreamf_osflash.org
>
More information about the sabreamf
mailing list