Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77749 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66877 invoked from network); 2 Oct 2014 20:31:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2014 20:31:10 -0000 Authentication-Results: pb1.pair.com header.from=florian@margaine.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=florian@margaine.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain margaine.com from 209.85.223.173 cause and error) X-PHP-List-Original-Sender: florian@margaine.com X-Host-Fingerprint: 209.85.223.173 mail-ie0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:54119] helo=mail-ie0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/E5-33841-D06BD245 for ; Thu, 02 Oct 2014 16:31:09 -0400 Received: by mail-ie0-f173.google.com with SMTP id tp5so3316173ieb.18 for ; Thu, 02 Oct 2014 13:31:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=vV2RpJ14bkbZB7NR1itnxeVRcRI1W5eVO1zoTxZyKOI=; b=Jj1/o2ExpIf8w+k2j8dZzwsDo5OBpXVoki20nobzB0HtwvRw4NKasuHHx9sSiiDd6N 7jGfLbexGyNjWAZHiK4+HK/6CQdT1IUB4/e0CcocGRpLhytT7ok059GJm/TREAn89VGT JqeGIm3aunO6serEf0YoCM++qI0FaRQ6kiQGPFdwjPL5hLFElWUTJjg05Ll6viai7Msj Q9rpXd3d/mvjsnyahsYo2gEku/OQ5Id3LG+Ilg5adbkbNVsX48/4LZcYN9kdVkBQrGE0 +doRDwwFrG2aTNx2SjQGd4DYbtmXg+HhtPREd1Xeiopn1Vc17ainwBK3I1ORtposp9MV 9MqA== X-Gm-Message-State: ALoCoQlvIhpz3DRCnUao1RBlE33cFkjEEZo2cK5IAF0HkLvwH4LCaqBdYys0/x8db8kdnHsk5RUQ X-Received: by 10.50.61.144 with SMTP id p16mr8189405igr.38.1412281866258; Thu, 02 Oct 2014 13:31:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.5.194 with HTTP; Thu, 2 Oct 2014 13:30:46 -0700 (PDT) X-Originating-IP: [89.92.205.106] In-Reply-To: <542DB1A2.3040507@sugarcrm.com> References: <542DA1A9.6020804@sugarcrm.com> <542DB1A2.3040507@sugarcrm.com> Date: Thu, 2 Oct 2014 22:30:46 +0200 Message-ID: To: Stas Malyshev Cc: PHP Internals , Nikita Popov Content-Type: multipart/alternative; boundary=047d7bd6c11af67b290504767e15 Subject: Re: [PHP-DEV] Re: Remove generated lexers from git? From: florian@margaine.com (Florian Margaine) --047d7bd6c11af67b290504767e15 Content-Type: text/plain; charset=UTF-8 Hi, On Thu, Oct 2, 2014 at 10:12 PM, Stas Malyshev wrote: > Hi! > > > Sorry to intrude, but why would building be harder? Tbh I don't see the > > Because there are more dependencies and tools needed to build the > parsers. You'd have to have recent re2c, for example. Which does not > come by default with many systems. I see no reason to add this hurdle > with no benefit for anybody. > It's already necessary; PHP won't pass the configure step without re2c. > > > Also, there may be a small number of "big diffs", but one is enough to > > introduce a bug. Generating the file every time ensures there is no > > hidden bug. > > Which bug? They are generated parsers from the same source, what kind of > bug you're talking about? > Slipping in a malicious code in such a diff could easily go unnoticed, for instance. Or simply going to the file to see the generated code, leave a letter by mistake because the cat jumps on the keyboard, and there you go. I just mean that such big diffs are simply unreviewable; you have to trust that it was generated and not touched after. Why this unnecessary trust to give, when we can simply not have the file? > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > -- Florian Margaine --047d7bd6c11af67b290504767e15--