increase get parameter value limit in php
<p>I've been seeing this error in apache error.log:
File name too long: access to /foo=bar failed</p>

<p>the value is 290 char long. After some research I found that the default max limit is set to 255 char in PHP. I tried increasing it to 512 char by using 'suhosin.get.max_value_length = 512'. I verified this change is applied by running phpinfo() from web.</p>

<p>But I'm still getting this error.</p>

<p>Question is, how do I increase the limit ?</p>

<p>I'm using CodeIgniter, php 5.3.10-1ubuntu3.5 with Suhosin-Patch on Ubuntu 12.04</p>

<p>Update:</p>

<p>I'm also doing url rewrite in apache, looks like this limit is from max file name limit in Linux system (ref: <a href="http://serverfault.com/questions/120397/max-length-of-url-257-characters-for-mod-rewrite">http://serverfault.com/questions/120397/max-length-of-url-257-characters-for-mod-rewrite</a>)</p>

<p>Can anyone please confirm this? why would the mod rewrite rule be limited by the max file name limits ? :(</p>

<p>Here is the rewrite rule:</p>

<pre><code>RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/(index\.php|images|css|js|robots\.txt|favicon\.ico)

RewriteRule ^(.*)$  /app/index.php\?f=$1 [L]
</code></pre>

<p>thx</p>
