What are the potential implications of setting a higher memory limit for PHP file uploads in terms of server performance and stability?

Setting a higher memory limit for PHP file uploads can potentially lead to increased server resource usage, which may impact performance and stability. It can result in higher memory consumption and longer processing times for large file uploads, potentially leading to server crashes or slowdowns.

// Increase memory limit for PHP file uploads
ini_set('memory_limit', '256M');