manuelpichler/pdepend — pull request #7 by guidovanbiemen (2012-02-29 11:28:04+00:00)
Title: Fixed fatal error due to bug in memory_limit modification code.

After recently upgrading pdepend through pear, I got this fatal error:

```PHP
guido@debian:~/sites/phrodo/git/build$ pdepend --help
PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 122880 bytes) in /usr/share/php/PHP/Depend/TextUI/Command.php on line 192
PHP Stack trace:
PHP 1. {main}() /usr/bin/pdepend:0
PHP 2. PHP_Depend_Autoload->autoload() /usr/share/php/PHP/Depend/Autoload.php:0
```

I found out, this is caused by the memory_limit modification code in pdepend(.php). It happens when you have memory_limit set to -1, the suhosin extension installed, but no suhosin.memory_limit set. This is the situation for the PHP CLI on a vanilla Debian 6 setup.

The change i made should fix this issue.