What are the potential consequences of assigning PHP files to open with Adobe Reader instead of a text editor?

Assigning PHP files to open with Adobe Reader instead of a text editor can cause the PHP code to be displayed as unreadable text or generate errors when opened. To solve this issue, you should change the default program for opening PHP files back to a text editor like Notepad or Sublime Text.

<?php
// This is a PHP code snippet to force the browser to download PHP files instead of displaying them
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="filename.php"');
readfile('filename.php');
?>