We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apache NetBeans 15
In PHP 8.1, it is possible to write octal numbers with the explicit prefix 0o. https://wiki.php.net/rfc/explicit_octal_notation https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.core.octal-literal-prefix
0o
This new octal prefix causes a syntax error
Properties
Sources
PHP Version
PHP 8.1
<?php // PHP ^8.0 if(016 === 14) { echo "016 in octal equals 14 in decimal\n"; } // PHP 8.1+ if(0o16 === 14) { echo "0o16 in octal numbers with the explicit 0o prefix equals 14 in decimal\n"; }
Linux version 5.15.0-53-generic running on amd64
18.0.2-ea; OpenJDK 64-Bit Server VM 18.0.2-ea+9-Ubuntu-222.04; Private Build
Apache NetBeans Snap Package
No response
No
Yes
The text was updated successfully, but these errors were encountered:
Reproducible. This wasn't part of PHP 8.1 support in #3463
Sorry, something went wrong.
PHP 8.1: Explicit octal integer literal notation apache#5026
23a97d9
- apache#5026 - https://wiki.php.net/rfc/explicit_octal_notation - Fix lexers - Fix `PHP81UnhandledError` - Add unit tests for the parser and the lexer
Merge pull request #5695 from junichi11/php-gh-5026-php81-explicit-oc…
3093ce4
…tal-integer-literal-notation PHP 8.1: Explicit octal integer literal notation #5026
Fixed.
junichi11
Successfully merging a pull request may close this issue.
Apache NetBeans version
Apache NetBeans 15
What happened
In PHP 8.1, it is possible to write octal numbers with the explicit prefix
0o
.https://wiki.php.net/rfc/explicit_octal_notation
https://www.php.net/manual/en/migration81.new-features.php#migration81.new-features.core.octal-literal-prefix
This new octal prefix causes a syntax error


How to reproduce
Properties
>Sources
>PHP Version
,PHP 8.1
,Did this work correctly in an earlier version?
Apache NetBeans 15
Operating System
Linux version 5.15.0-53-generic running on amd64
JDK
18.0.2-ea; OpenJDK 64-Bit Server VM 18.0.2-ea+9-Ubuntu-222.04; Private Build
Apache NetBeans packaging
Apache NetBeans Snap Package
Anything else
No response
Are you willing to submit a pull request?
No
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: