Open
Description
Right now, if you have a PHP file include/require a PHAR file, the PHAR file is effectively ignored (except maybe the stub... I haven't checked that particular detail).
By design, PHAR files contain multiple files, and requiring the PHAR file itself executes the stub, which is typically used to set up an autoloader for all files of the PHAR (or more accurately, that's what typically happens for PHAR files that are meant to be included/required). Because of how typical this case is, and how useful PHAR files in general are, it would be great if the contents of PHAR files were scanned for autoloadable symbols (classes, interfaces, traits), and the stub is scanned like a normal PHP file (if it's not already scanned that way already).