Skip to content

Conversation

@hikari-no-yume
Copy link
Contributor

See bug page for details: https://bugs.php.net/bug.php?id=71897

There's a corresponding php-langspec pull request: php/php-langspec#156

There's a possibility that allowing ␡ is intentional, and if that's the case then we probably shouldn't merge this "fix".

@hikari-no-yume
Copy link
Contributor Author

The test I wrote seems to trigger a memory leak in OPcache. I doubt that's the fault of my patch, though.

@hikari-no-yume hikari-no-yume changed the title Fix bug #71897 Fix bug #71897 (ASCII 0x7F Delete/Backspace control character permitted in identifiers) Mar 25, 2016
@hikari-no-yume hikari-no-yume changed the title Fix bug #71897 (ASCII 0x7F Delete/Backspace control character permitted in identifiers) Fix bug #71897 (ASCII 0x7F Delete control character permitted in identifiers) Mar 25, 2016
- Core:
. 'void' can no longer be used as the name of a class, interface, or trait.
This applies to declarations, class_alias() and use statements.
. The ASCII 0x7F Delete control character is no longer permitted in unquoted
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope "unquoted identifiers" is reasonably clear, but I'm open to suggestions for better wording. I want to express that it covers $a␡b and a␡b but not ${"a\x7Fb"} or constant("a\x7Fb").

@nikic
Copy link
Member

nikic commented Mar 25, 2016

You should bring this up on the list. It seems like a mistake to me as well, but who knows...

@hikari-no-yume
Copy link
Contributor Author

Ah, good idea, if anyone knows it'll be someone on internals.

@hikari-no-yume
Copy link
Contributor Author

Nobody seems to have objected. Should this be merged, then?

@KalleZ
Copy link
Member

KalleZ commented May 4, 2016

Go for it

@php-pulls php-pulls merged commit 660e88c into php:master May 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants