Hi Andrea

> There is a critical use-case for comments beginning with the hash
> symbol, namely UNIX shebang lines. In theory we could special-case those
> and disallow the symbol in every other use, but… well, that seems like a
> bit of a shame.

Correct me if I'm wrong, but the shebang goes before the PHP opening
tag <?php and thus this is not relevant. In fact, shebang is already a
special case.

https://github.com/php/php-src/blob/f32653accc0fc2401aca91f9590272b8d95ef426/Zend/zend_language_scanner.l#L2155

Ilija

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to