Bug #66843 [Opn->Nab]: set_error_handler message is cut
| From: | ab@php.net | Date: | Wed, 26 Mar 2014 08:23:31 +0000 |
| Subject: | Bug #66843 [Opn->Nab]: set_error_handler message is cut | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-184890@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66843&edit=1
ID: 66843
Updated by: ab@php.net
Reported by: php at maisqi dot com
Summary: set_error_handler message is cut
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Windows and Linux
PHP Version: 5.5.10
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Please use the full parameter list of the error handler function, that way you can compose the error
message.
set_error_handler (function ($code, $message, $file, $line) { echo '== ', $message, '
in ', $file, ' on line ', $line; });
Previous Comments:
------------------------------------------------------------------------
[2014-03-25 19:53:49] php at maisqi dot com
I tested it now without htmlspecialchars() and the problem remains. Check the file for yourself; it
outputs the source code now.
Thanks.
------------------------------------------------------------------------
[2014-03-25 14:25:32] ab@php.net
But have you tried to remove the htmlspecialchars() call?
Thanks.
------------------------------------------------------------------------
[2014-03-11 16:22:36] php at maisqi dot com
@ab@php.net
Thanks for your help but I don't think that's the problem. I changed the script on the
server to output error log: http://maisqi.com/outros/bugs/php/66843
The message of the error log is being output fully, so it can't be an issue with the character
encoding, or both would be truncated.
------------------------------------------------------------------------
[2014-03-11 10:13:11] ab@php.net
Under Apache you should check if there's something in the error_log, sometimes that output will
go to stderr so it'll be seen in the error logs only. Whereby what you show is probably not the
case.
I assume the issue you've got is laying in the usage of htmlspecialchars. Please check your
error messages are in the right charset.
Thanks.
------------------------------------------------------------------------
[2014-03-07 12:41:49] php at maisqi dot com
Test script in http://maisqi.com/outros/bugs/php/66843, running
on a Linux server.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66843
--
Edit this bug report at https://bugs.php.net/bug.php?id=66843&edit=1