|
|
|
@ -1810,14 +1810,7 @@ class CompilerBase extends \PhpAot\Core\Translator |
|
|
|
$this->fatalError($expr, 'Cannot echo assign expression'); |
|
|
|
$this->fatalError($expr, 'Cannot echo assign expression'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$type = $this->detectTypeOfExpr($expr); |
|
|
|
$type = $this->detectTypeOfExpr($expr); |
|
|
|
$parsed = $this->parseExpr($expr); |
|
|
|
$parsed = $this->convertExprToStringByType($this->parseExpr($expr), $type); |
|
|
|
if ($type === self::TYPE_BIGINT) { |
|
|
|
|
|
|
|
$parsed = 'php::BigInt::toString(' . $parsed . ')'; |
|
|
|
|
|
|
|
} elseif ($type === self::TYPE_BIGFLOAT) { |
|
|
|
|
|
|
|
$parsed = 'php::BigFloat::toString(' . $parsed . ')'; |
|
|
|
|
|
|
|
} elseif ($type === self::TYPE_DECIMAL) { |
|
|
|
|
|
|
|
$parsed = 'php::Decimal::toString(' . $parsed . ')'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$lines[] = 'php::echo(' . $parsed . ');'; |
|
|
|
$lines[] = 'php::echo(' . $parsed . ');'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|