Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | protected function parse($data = null, $filename = null) |
||
44 | { |
||
45 | $serializedData = @unserialize($data); |
||
46 | if($serializedData === false){ |
||
47 | |||
48 | $error = [ |
||
49 | 'message' => $php_errormsg, |
||
50 | 'type' => 'unserialize error', |
||
51 | 'file' => $filename, |
||
52 | ]; |
||
53 | |||
54 | throw new ParseException($error); |
||
55 | } |
||
56 | |||
57 | return $serializedData; |
||
58 | } |
||
59 | |||
68 |