-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 16
-
Fix Version/s: None
-
Component/s: UCP (User Control Panel)
-
Labels:None
-
ToDo:
-
Asterisk Version:18.15.1
-
Distro Version:12.7.6-2002-2.sng7
-
Distro:FreePBX Distro
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
# /**
- * @param string $op
- */
- 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} - $value = Less_Functions::operate( $op, $this->value, $other->value);
- }
- }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(); # }
- return new Less_Tree_Dimension( $value, $unit);
- }
Arguments
- "The behavior of unparenthesized expressions containing both '.' and ''/'
' will change in PHP 8: ''/'' will take a higher precedence"