Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102797 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68423 invoked from network); 13 Jul 2018 09:26:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jul 2018 09:26:26 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.54 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.54 mail-it0-f54.google.com Received: from [209.85.214.54] ([209.85.214.54:51915] helo=mail-it0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/12-39793-140784B5 for ; Fri, 13 Jul 2018 05:26:26 -0400 Received: by mail-it0-f54.google.com with SMTP id h2-v6so8848994itj.1 for ; Fri, 13 Jul 2018 02:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Y7GvqIf18Bh4fvvj1uKgjZzAXr52CyfMUwplrWaedOE=; b=UMRFDrMRdE4zR4jj7zLHQ1vsQ4nqo9Wm3jOatYf7ptJX8YSFANK0vZbK5t7HWQg5tX jvTRBHCjZAD/lzCKpS0Z1xA7MF4Pb+r08ltPBxS2zBDXX1+u43wz8u9+QKJx2C55vihM 29n5Pu857H/G2uY/6VvEBwzwOUHnTFNsEkAozVejz3vjd6LnYqKJj8elsB1DAd42lzEq YzSw2o/cWf71lJH5joEXIByMbPbFRUniRLjSpErg/5meMBYrM2zeX4RNKKJUzsUdfipz zXJCi7JyY+5M93htPoa+Vow1gYxr4ywg28wWhRlcXBqwbUW8CGdot5uNqD0GOPKjq/ez Wlug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Y7GvqIf18Bh4fvvj1uKgjZzAXr52CyfMUwplrWaedOE=; b=h2GV7cceXg9ci2ITWKqdQVVqvUnOS6lyTA+VuQWlseWKo2m68V5kxV7+EveFwh+r/a faPShJ9fVveNYkWnSOaI+ew93S0XEhEh83dY1k17reP0jNi5QbydiplNy8A37OEf6t2k 2qsEqflwqeF9C2BX9aC1w6RdTH7SzkhWDjQk+vKtvjWiQujK2jx0gKShbGrSsAPqq40Z lRgd4tM6iIQSNo0+njUEXnsvbbMPvDAtN158fr91lFspWzxpI8mFsikC6PlmrAP+ovHZ gtzC2u2j7nZ9TZKF4VGZNSxsIwclZ0plKJH062IhYxygK7ppPYtCPeiG1CZ5hktbHkjZ FHHw== X-Gm-Message-State: AOUpUlEfJmVjvAWk0K4f8qCymDP2qbKb6rMseNHQVVIcPsVLmXVf3KiS QtslJAHkxjR+ixr2GXphewZeonhVciY8LccOYeo= X-Google-Smtp-Source: AAOMgpcMZFy8VLFnz4lCW1j94Ut1mG66s2EMDiGJwN9VbofuoCr9ZehUWsLNssi30XYPgJe2/1XkbZWzqxc3Z+ABXsE= X-Received: by 2002:a24:f9cb:: with SMTP id l194-v6mr4194681ith.87.1531473982668; Fri, 13 Jul 2018 02:26:22 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:148a:0:0:0:0:0 with HTTP; Fri, 13 Jul 2018 02:26:22 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Jul 2018 11:26:22 +0200 Message-ID: To: Dmitry Stogov Cc: PHP internals list , Stanislav Malyshev , "derick@derickrethans.nl" , "Christoph M. Becker" Content-Type: multipart/alternative; boundary="000000000000b845190570de1296" Subject: Re: [PHP-DEV] re2c version(s) From: nikita.ppv@gmail.com (Nikita Popov) --000000000000b845190570de1296 Content-Type: text/plain; charset="UTF-8" On Fri, Jul 13, 2018 at 11:13 AM, Dmitry Stogov wrote: > Hi, > > > I think, many core developers saw unexpected changes in > "zend_labguages_scanner.c" or "var_unserializer.c" after rebuilds. > > This occurs, because we use different versions of re2c, and some of them > produce really different code. > > They also embed version number into the generate source. Currently > different files in PHP source tree generated by different re2c versions: > > > ext/json/json_scanner.c 0.16 > > ext/date/lib/parse_date.c 0.15.3 > > ext/date/lib/parse_iso_intervals.c 0.15.3 > > ext/pdo/pdo_sql_parser.c 0.16 > > ext/phar/phar_path_check.c 1.0.3 > > sapi/phpdbg/phpdbg_lexer.c 0.16 > > ext/standard/url_scanner_ex.c 0.16 > > ext/standard/var_unserializer.c 1.0.1 > > Zend/zend_ini_scanner.c 0.15 > > Zend/zend_language_scanner.c 1.0.1 > > > I propose, to change build scripts (in master and PHP-7.3) to require at > least re2c version 1.0.0 (it seems 1.0.0-1.0.3 produce the same result) and > suppress version output into the generated files. > > > I'm not sure about timelib files. > > > Thanks. Dmitry. > I don't think normalizing the version really solves anything. These files should be dropped from version control entirely instead. Generated files do not belong in version control. re2c is widely available on Linux distros nowadays (probably specifically because PHP uses it) and while there might have been historical ground to bundle these generated files, there no longer is one. Nikita --000000000000b845190570de1296--