PHP memory exhausted although memory limit not reached
<p>I am currently debugging a php-script.
I set the memory_limit to 64M and it confirms this:</p>

<pre><code>ini_set("memory_limit","64M");
echo "starting script with ".ini_get("memory_limit")."Bytes of ram\n"; \\64
</code></pre>

<p>But nevertheless the script breaks using just 20M giving the standard memory exhausted error.</p>

<pre><code>Fatal error: Allowed memory size of 20971520 byte exhausted
</code></pre>

<p>Is there a possibility I probably did not think of ?
Maybe Apache is setting something for PHP ?</p>
