|
|
@ -1,8 +1,6 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
|
|
|
|
|
|
|
use Brumann\Polyfill\Unserialize; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Class UnserializeApi. |
|
|
|
* Class UnserializeApi. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -109,13 +107,13 @@ class UnserializeApi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($ignoreErrors) { |
|
|
|
if ($ignoreErrors) { |
|
|
|
return @Unserialize::unserialize( |
|
|
|
return @unserialize( |
|
|
|
$serialized, |
|
|
|
$serialized, |
|
|
|
['allowed_classes' => $allowedClasses] |
|
|
|
['allowed_classes' => $allowedClasses] |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Unserialize::unserialize( |
|
|
|
return unserialize( |
|
|
|
$serialized, |
|
|
|
$serialized, |
|
|
|
['allowed_classes' => $allowedClasses] |
|
|
|
['allowed_classes' => $allowedClasses] |
|
|
|
); |
|
|
|
); |
|
|
|