title: PHP: json decode limits
body: <p>Take this code:</p>
  
  <pre><code>$json = file_get_contents($this-&gt;url, true); 
  $decode = json_decode($json, true); 
  
  foreach ($decode as $key =&gt; $value) {
   ...
  }
  </code></pre>
  
  <p>Pretty simple, uh? </p>
  
  <p>Passing a $json with up to 500 array elements.... works right!</p>
  
  <p>Above that limit... the error is: </p>
  
  <blockquote>
    <p>Warning: Invalid argument supplied for foreach() in
    /c/website/retriever/WsGlassRetriever.php on line 19</p>
  </blockquote>
  
  <p>Is there some memory limit for that function's argument?</p>
  
  <p>I didn't found nothing about it in the docs. My version is PHP 5.2.17-rnx1.1 with Suhosin-Patch 0.9.7 (cli)</p>