You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/28 21:06:32 UTC

[GitHub] [netbeans] noelma opened a new issue, #5026: [PHP] Error for octal numbers with prefix in php8.1

noelma opened a new issue, #5026:
URL: https://github.com/apache/netbeans/issues/5026

   ### 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
   ![Capture d’écran du 2022-11-28 21-57-56](https://user-images.githubusercontent.com/10517497/204380503-72e079a3-e81e-4080-8173-0d7d03220f4c.png)
   ![Capture d’écran du 2022-11-28 21-58-03](https://user-images.githubusercontent.com/10517497/204380516-be44795a-7541-4d4d-be16-5ed078909699.png)
   
   
   ### How to reproduce
   
   - In `Properties` > `Sources` > `PHP Version`,
   - Select `PHP 8.1`,
   - Insert the following code in a PHP file:
     ```php
     <?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";
     }
     ```
   
   ### 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] junichi11 commented on issue #5026: [PHP] Error for octal numbers with prefix in php8.1

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #5026:
URL: https://github.com/apache/netbeans/issues/5026#issuecomment-1480627668

   Fixed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] KacerCZ commented on issue #5026: [PHP] Error for octal numbers with prefix in php8.1

Posted by GitBox <gi...@apache.org>.
KacerCZ commented on issue #5026:
URL: https://github.com/apache/netbeans/issues/5026#issuecomment-1334127759

   Reproducible.
   This wasn't part of PHP 8.1 support in https://github.com/apache/netbeans/pull/3463


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] junichi11 closed issue #5026: [PHP] Error for octal numbers with prefix in php8.1

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 closed issue #5026: [PHP] Error for octal numbers with prefix in php8.1
URL: https://github.com/apache/netbeans/issues/5026


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists