Announcement

Collapse
No announcement yet.

There Will Be Many Features Coming For PHP 7.1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • There Will Be Many Features Coming For PHP 7.1

    Phoronix: There Will Be Many Features Coming For PHP 7.1

    PHP 7 was just released over one month ago but there is already much work going into PHP 7.1, the next major update to this widely-used web programming language...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Upgrade on Arch was pretty smooth, only had to update php5 references to php7 in /etc/httpd/conf/httpd.conf

    And of course $ apachectl configtest is your friend.

    So far haven't test driven much but all my development server php 5.4.x software seems to work just fine.

    Comment


    • #3
      Still no decorators/annotations.

      Comment


      • #4
        Oh thank *insert being of higher power here* those Short Closures were not accepted. they look awful!

        Comment


        • #5
          @Michael: sorry mate, but short closures are not going to be included in 7.1 because the poll closed against it by 30 votes.

          Comment


          • #6
            The current build from source for 7.1 has these already implemented and working:

            Void Return Type
            PHP Code:
            function should_return_nothing(): void 
             
            {
               return 
            1// Fatal error: A void function must not return a value
             

            Class constant visibility modifiers

            PHP Code:
            class Token 
             
            {
               
            // Constants default to public
               
            const PUBLIC_CONST 0;

               
            // Constants then also can have a defined visibility
               
            private const PRIVATE_CONST 0;
               protected const 
            PROTECTED_CONST 0;
               public const 
            PUBLIC_CONST_TWO 0;

               
            //Constants can only have one visibility declaration list
               
            private const FOO 1BAR 2;
             } 

            Add HTTP/2 Server Push support to ext/curl

            PHP Code:

            $transfers 
            1;
            $callback = function($parent_ch$pushed_ch, array $headers) use (&$transfers
            {
              
            $transfers++; // increment to keep track of the number of concurrent requests
              
            return CURL_PUSH_OK;
            }; 

            Comment

            Working...
            X