# | Line 1 | Line 1 | |
---|---|---|
1 | < | import types, string |
1 | > | import string |
2 | ||
3 | """ | |
4 | Unserialize class for the PHP RefDB serialization format. | |
# | Line 51 | Line 51 | class PHPUnserialize(object): | |
51 | offset = raw offset from start of data | |
52 | """ | |
53 | ||
54 | – | buf = [] |
54 | dtype = string.lower(data[offset:offset+1]) | |
55 | ||
56 | #print "# dtype =", dtype | |
# | Line 59 | Line 58 | class PHPUnserialize(object): | |
58 | # 't:' = 2 chars | |
59 | dataoffset = offset + 2 | |
60 | typeconvert = lambda x : x | |
61 | < | chars = datalength = 0 |
61 | > | chars = 0 |
62 | ||
63 | # int => Integer | |
64 | if dtype == 'i': |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |