$memoryLimit = strtolower($memoryLimit);
$max = strtolower(ltrim($memoryLimit, '+'));
if (0 === strpos($max, '0x')) {
- $max = intval($max, 16);
+ $max = \intval($max, 16);
} elseif (0 === strpos($max, '0')) {
- $max = intval($max, 8);
+ $max = \intval($max, 8);
} else {
$max = (int) $max;
}