[php] checking memory_limit in PHP