Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-23952

The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: None
    • Labels:
      None
    • ToDo:
    • Asterisk Version:
      18.15.1
    • Distro Version:
      12.7.6-2002-2.sng7
    • Distro:
      FreePBX Distro

      Description

      Upgraded FPBX from v15 to v16

      • Distro12.7.6-2002-2.sng7
      • Asterisk 18.15.1
      • Freepbx 16.0.30
      • UCP module 16.0.30
      • PHP Version 7.4.16

      Now, whenever someone clicks on the UCP menu button an error screen appears stating "The behavior of unparenthesized expressions containing both '.' and ''/'' will change in PHP 8: ''/'' will take a higher precedence"

       
      /var/www/html/ucp/includes/less/Less.php
        # /**

      1. * @param string $op
      2. */
      3. public function operate( $op, $other) { # # $value = Less_Functions::operate( $op, $this->value, $other->value); # $unit = clone $this->unit; # # if( $op === '+' || $op === '-' ) \{ # # if( !$unit->numerator && !$unit->denominator ) \{ # $unit->numerator = $other->unit->numerator; # $unit->denominator = $other->unit->denominator; # }

        elseif( !$other->unit->numerator && !$other->unit->denominator )

        { # // do nothing # }

        else

        Unknown macro: { # $other = $other->convertTo( $this->unit->usedUnits()); # # if( Less_Parser}
      4. $value = Less_Functions::operate( $op, $this->value, $other->value);
      5. }
      6. }elseif( $op === '*' ) { # $unit->numerator = array_merge($unit->numerator, $other->unit->numerator); # $unit->denominator = array_merge($unit->denominator, $other->unit->denominator); # sort($unit->numerator); # sort($unit->denominator); # $unit->cancel(); # }elseif( $op === '/' ) { # $unit->numerator = array_merge($unit->numerator, $other->unit->denominator); # $unit->denominator = array_merge($unit->denominator, $other->unit->numerator); # sort($unit->numerator); # sort($unit->denominator); # $unit->cancel(); # }
      7. return new Less_Tree_Dimension( $value, $unit);
      8. }

      Arguments

      1. "The behavior of unparenthesized expressions containing both '.' and ''/'' will change in PHP 8: ''/'' will take a higher precedence"
         

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                akarshmr Akarsh MR
                Reporter:
                nxcoms Andy Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.