Package: phpmd
Version: 2.4.3-1
Severity: important

Dear Maintainer,

The package phpmd for at least Debian 9 Stretch lacks dependency php-xml. In 
consequence, phpmd crashes.

```
$ phpmd app xml ruleset.xml
PHP Fatal error:  Uncaught Error: Call to undefined function 
PHPMD\simplexml_load_string() in /usr/share/php/PHPMD/RuleSetFactory.php:551
Stack trace:
#0 /usr/share/php/PHPMD/PHPMD.php(208): 
PHPMD\RuleSetFactory->getIgnorePattern('ruleset.xml')
#1 /usr/share/php/PHPMD/TextUI/Command.php(129): 
PHPMD\PHPMD->processFiles('app', 'ruleset.xml', Array, 
Object(PHPMD\RuleSetFactory))
#2 /usr/share/php/PHPMD/TextUI/Command.php(170): 
PHPMD\TextUI\Command->run(Object(PHPMD\TextUI\CommandLineOptions), 
Object(PHPMD\RuleSetFactory))
#3 /usr/bin/phpmd(122): PHPMD\TextUI\Command::main(Array)
#4 {main}
  thrown in /usr/share/php/PHPMD/RuleSetFactory.php on line 551
```

Regards.

-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'oldstable-updates'), (500, 
'oldoldstable'), (500, 'stable'), (500, 'oldstable'), (60, 'testing'), (50, 
'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), 
LANGUAGE=fr_FR.utf8 (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+49
ii  php-common            1:49
ii  php7.0-cli [php-cli]  7.0.19-1

phpmd recommends no packages.

phpmd suggests no packages.

-- no debconf information

Reply via email to