[pkg-php-pear] Bug#850143: phpmd reports exponentiation with double asterisks as 'Unexpected token'

Carsten Kosthorst kosthorst at apobyte.de
Wed Jan 4 11:44:05 UTC 2017


Package: phpmd
Version: 2.4.3-1
Severity: important

Dear Maintainer,

phpmd reports exponentiation with double asterisks as 'Unexpected
token'. Double asterisks are a valid arithmetic operator since PHP 5.6:
<http://php.net/manual/en/language.operators.arithmetic.php>.

~$ cat foo.php && php foo.php && phpmd foo.php text cleancode
<?php

var_dump(2**2);
int(4)

/home/kosthorst/foo.php -       Unexpected token: **, line: 3, col: 11,
file: /home/kosthorst/foo.php.

   Carsten

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages phpmd depends on:
ii  pdepend               2.2.4-1
ii  php-cli               1:7.0+47
ii  php-common            1:47
ii  php7.0-cli [php-cli]  7.0.14-2

phpmd recommends no packages.

phpmd suggests no packages.

-- no debconf information



More information about the pkg-php-pear mailing list