PATCH: error message length limit

From: Date: Fri, 03 Oct 2003 16:34:13 +0000
Subject: PATCH: error message length limit
Groups: php.internals 
Request: Send a blank email to internals+get-4665@lists.php.net to get a copy of this message
Hello, First, I want to apologize in advance if this should be the wrong list for this. Please just point me to the correct list in this case. As noted in the documentation of the function trigger_error (http://www.php.net/trigger_error), an error message is limited to 1024 characters. It gets truncated if it is longer. In the PHP web application i currently develop, this can sometimes be pretty annoying, because i use trigger_error to report error messages i get when executing SQL queries to a custom error handler that mails me all those errors. This error message sometimes contain SQL statements that are far longer than 1024 characters. They get truncated, and i can not see the real reason of the error then. The patch i attached increases this limit by continually increasing the buffer that should hold the error message, until the error message does not fill up the entire buffer any more. The patch is against 4.3.4RC1, but should still seemlessly apply to the 4.3 branch in CVS.

Attachment: [text/x-diff] php-4.3.4RC1-errmsg-len.patch
« previous php.internals (#4665) next »