Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89461 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10813 invoked from network); 27 Nov 2015 09:06:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2015 09:06:05 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.181 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.181 mail-ob0-f181.google.com Received: from [209.85.214.181] ([209.85.214.181:36334] helo=mail-ob0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/55-04444-BFC18565 for ; Fri, 27 Nov 2015 04:06:04 -0500 Received: by obdgf3 with SMTP id gf3so79296990obd.3 for ; Fri, 27 Nov 2015 01:06:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=E+4RW/oe5qaZDYIUsHtBcDSKagUPdhic6ij0mNhLgZA=; b=fcABjQ7DVsPSVEHL+N9zrfZ8XjMCrycYHWhCV8ftdM8yCqVxDirF+FTwT2MuJJWrzN N0s4TlhunIo/w7VAYmvGX1betAWIqAdzqx0XPTXHMRAeoJ9LZ3m4g6oxuCRxI1K0l2Fh mNROIf+k5Z4BgtpslmwMt/7i5jxQEtWAPvLMgedDfZo17HcR9mL8SQnFQbqdZLrMY8v3 nApE+2/6KN8EI7hOofdcmF7PbCG2X4nF5xbz8bKkDdo2+9fIfkdk3WwAmDsIWstmw2YU MNintOWdg4SqU4mlY+Fe0BtLyRvkmEi0MqIC4o4J5kNwKqbRLAmHMfrATLLry+O1hMzj EoiA== X-Received: by 10.182.107.164 with SMTP id hd4mr31167824obb.74.1448615161013; Fri, 27 Nov 2015 01:06:01 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.202.73.198 with HTTP; Fri, 27 Nov 2015 01:05:21 -0800 (PST) In-Reply-To: References: Date: Fri, 27 Nov 2015 18:05:21 +0900 X-Google-Sender-Auth: FkGAWoOJQ-FJx8hS7SKdoMnKO28 Message-ID: To: Nikita Popov Cc: PHP internals , Anatol Belski , Remi Collet Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] HashDos protection From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Nikita, On Fri, Nov 27, 2015 at 2:24 AM, Nikita Popov wrote: > What are your thoughts on this? Great! This is exactly what I was thinking. I prefer collision counting rather than slower hash function. Hardcoded collision max (1000) seems ok for me. Catchable fatal error, at least E_RECOVERABLE_ERROR, is preferred, IMHO. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net