Only ignore hashbang line in cli mode

@see https://github.com/php/php-src/blob/master/sapi/cli/php_cli.c#L606