phpdocumentor: Bad environment variable $PHP
Submitted by Bram Schoenmakers on 27 May, 2009 - 09:35.
I tried to create a local API reference of the Zend Framework on our local network, with the PhpDocumentor tool. However, along the process it stops with the following error:
FAILED: Bad environment variable: $PHP (set to "/usr/bin/php")
Of course PHP is installed in that prefix. It turns out that the error reporting of PhpDocumentor is quite poor, because this has nothing to do with environment variables at all. The PHP process simply ran out of memory, because it stores all parsed contents in memory. So to fix this problem it was sufficient to raise the memory_limit to a higher level in php.ini.
Thank you! I have just run
Thank you! I have just run this confused error message and your site is the first in Google!
phpDocumentor.ini
If you're unable to change PHP's memory limit in the ini, you can also set it in PhpDocumentor. Just look in phpDocumentor.ini in the root of your PhpDocumentor directory for "memory_limit".
Thanks for this post, saved
Thanks for this post, saved me a headache!
Thank you very much, nice
Thank you very much, nice done!