Edit report at https://bugs.php.net/bug.php?id=64929&edit=1
ID: 64929
Comment by: matteosistisette at gmail dot com
Reported by: matteosistisette at gmail dot com
Summary: Bugtracker rejects legitimate and useful comments as
spam
Status: Open
Type: Bug
Package: Website problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
[OMITTING LINE THAT SEEMS TO BE PROBLEMATIC]
http_response_code($exception->getCode());
}else http_response_code(500);
header("Content-Type: text/plain");
S::error($output=$exception->getMessage()." \n @ ".$exception-
>getFile()."(".$exception->getLine().")\n".$exception->getTraceAsString());
die($output);
});
Previous Comments:
------------------------------------------------------------------------
[2013-05-28 18:19:04] matteosistisette at gmail dot com
set_exception_handler(function($exception) {
------------------------------------------------------------------------
[2013-05-28 18:18:01] matteosistisette at gmail dot com
Good catch.
Here is my error handler (and also my exception handler though I don't think
it's involved)
set_error_handler(function($errno, $errstr, $errfile, $errline){
http_response_code(500);
header("Content-Type: text/plain");
$backtrace=debug_backtrace();
$output="$errstr \n @ $errfile($errline)\n";
foreach ($backtrace as $i=>$item) {
//if (isset($item['args'])) print_r($item['args']);
if ($i>0) $output.= "#$i. @ ".$item['file']."
(".$item['line']."): ".(isset($item['class'])?
$item['class']:'')."::".$item['function']."(".(is_array($item['args'])?
@implode(",",$item['args']):'').")\n";
}
S::error($output);
die($output);
});
------------------------------------------------------------------------
[2013-05-28 18:17:25] matteosistisette at gmail dot com
No, Not even a single url.
Now it seems like it's not the @'s.
I tried to post a code that included a error handler and an exception handler.
When I posted only the error handler it was accepted. I'll try to post the
whole
message in pieces.
------------------------------------------------------------------------
[2013-05-28 18:03:22] [email protected]
I'm guessing you are attempting to post text with a bunch of URLs. Is that true?
------------------------------------------------------------------------
[2013-05-27 15:16:18] matteosistisette at gmail dot com
Ok, no, it's the combination of @ more something else.
However, removing the @'s from the snipped of code allowed me to post it.
------------------------------------------------------------------------
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=64929
--
Edit this bug report at https://bugs.php.net/bug.php?id=64929&edit=1
--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php