if (!empty($category)) {
$this->category = (string) strtolower(preg_replace('/[^A-Z0-9_\.-]/i', '', $category));
}
// Get the current call stack and back trace (without args to save memory).
$this->callStack = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
// Get the date as a Date object.
$this->date = new Date($date ?: 'now');
}
}
OutOfMemoryError
|
---|
Symfony\Component\ErrorHandler\Error\OutOfMemoryError: Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) at /var/www/vhosts/tuneyourstore.com/httpdocs/libraries/src/Log/LogEntry.php:126 |