Bug #64929 [Com]: Bugtracker rejects legitimate and useful comments as spam

From: Date: Tue, 28 May 2013 18:21:17 +0000
Subject: Bug #64929 [Com]: Bugtracker rejects legitimate and useful comments as spam
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-15901@lists.php.net to get a copy of this message
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: OK I FOUND IT: it's this code: I'll insert random spaces in it: if ( $ e xc ep tio n in sta nce of S Exc e pti on ) { Previous Comments: ------------------------------------------------------------------------ [2013-05-28 18:20:32] matteosistisette at gmail dot com [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); }); ------------------------------------------------------------------------ [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] philip@php.net I'm guessing you are attempting to post text with a bunch of URLs. Is that true? ------------------------------------------------------------------------ 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

« previous php.webmaster (#15901) next »