Mysterious text truncation error/bug in PHP results in ...cut
<p>I am experiencing a maddening issue with PHP that I can't seem to resolve. In some cases when a form is posted with a text area or text field and I am also using multi-dimensional arrays for the form field ids (e.g. name="blah[id][5]") the text that was posted in the text area or text field gets mysteriously truncated by PHP at 256 characters with ...cut... at the end of the string. It's definitely happening after the POST, before any other processing and before it's written to the database. I can't find any reference to ...cut... within the PHP source code and we're still unable to reliably reproduce the error. It does not happen all the time. Has anyone encountered this maddening little beast before? We're using Apache 2 and PHP 5.2.6 on CentOS. </p>
