FWIW, on the command line, the best way I think to find out where your php is expecting an ini file is:

/etc# php -i | grep -i "configuration"

Configuration File (php.ini) Path => /etc
Loaded Configuration File => /private/etc/php-cli.ini


-ralph


Pádraic Brady wrote:
For example, under Ubuntu there is
/etc/php5/cli/php.ini and /etc/php5/apache2/php.ini
Pádraic Brady

http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative <http://www.openideurope.eu/>


------------------------------------------------------------------------
*From:* Tim Fountain <[email protected]>
*To:* [email protected]
*Sent:* Monday, August 3, 2009 3:08:29 PM
*Subject:* Re: [fw-general] Unit Testing ZFW

2009/8/3 Ryan Chan <[email protected] <mailto:[email protected]>>


     php -f AllTests.php

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
    allocate 7680 bytes)
    in /home/ZendFramework/tests/Zend/Config/Writer/XmlTest.php on
    line 54

    I have checked my php.ini - memory limit is 32M.

    Even I increased the value to 1GB, memory exhausted still exist,
    anything I missed?


When you increased the memory limit, did the error above change to "Allowed memory size of 1073741824 bytes exhausted..."? If not, remember that the command line version of PHP has its own php.ini file, so make sure you're editing the correct one.

--
Tim Fountain
http://tfountain.co.uk/

Reply via email to