As per the comments I created an RFC, proposing to allow arbitrary
expressions to be passed to empty() and isset():
The patch is available as a PR:
PS: I added isset() too, to address the consistency concerns mentioned on IRC.
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php