protected function isMemoryExhaustedError($error)
    {
        return
            isset($error['message'])
            && stripos($error['message'], 'memory') !== false
            && stripos($error['message'], 'exhausted') !== false;
    }
protected function isMemoryExhaustedError($error)
    {
        return
            isset($error['message'])
            && stripos($error['message'], 'memory') !== false
            && stripos($error['message'], 'exhausted') !== false;
    }
protected function isMemoryExhaustedError ( $ error ) { return isset ( $ error [ 'message' ] ) && stripos ( $ error [ 'message' ] , 'memory' ) !== false && stripos ( $ error [ 'message' ] , 'exhausted' ) !== false ; }
Returns whether or not the passed in error is a memory exhausted error
@param $error array
@return bool
Returns whether or not the passed in error is a memory exhausted error