|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-05-27 14:44 UTC] matteosistisette at gmail dot com
Description: ------------ See this bug report: https://bugs.php.net/bug.php?id=64924 I am desperately trying to post a snippet of code that triggers a PHP crash, hence contributing valuable information to help fix a tremendous bug, but the broken paranoid antispam system rejects it saying "please don't spam our bug tracker". (and all it accomplishes is to generate in me a strong desire to flood the bugtracker with lots of _real_ spam for pure vengeance.) And I can't even post the example text that triggers the bogus antispam rejection, because THIS very form is rejecting it as spam as well. So the bug is preventing from fixing itself. Drop me an email at mat teo sis ti sett e [at] gma il [dot] com and I'll reply with the text that triggers the bogus antismap. (if you are interested in fixing this issue at all) Expected result: ---------------- should post the comment Actual result: -------------- rejects the comment with the bogus error: "Please don't spam our bug tracker" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 13:00:01 2025 UTC |
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); });set_exception_handler(function($exception) {[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); });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 ) {