Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82747 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95556 invoked from network); 15 Feb 2015 20:18:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Feb 2015 20:18:21 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.180 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.213.180 mail-ig0-f180.google.com Received: from [209.85.213.180] ([209.85.213.180:50815] helo=mail-ig0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5E/91-21457-B0FF0E45 for ; Sun, 15 Feb 2015 15:18:20 -0500 Received: by mail-ig0-f180.google.com with SMTP id b16so20118656igk.1 for ; Sun, 15 Feb 2015 12:18:16 -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:date:message-id:subject :from:to:cc:content-type; bh=H++ogkWa9+l/65ClK2Uks/0mOzn+wXBj+xmKpxfUmU4=; b=zPtvUH+FJktTr7S09PbKcQ1/PtWM6A7kJJIVgLN+qQsYVZcifaPZ9EDLk3PCUpLssr uSPoXckgKMsuzy+4tx2rVqNxKsXAjhSMDJsDsU4fCcbSc3i5i9T2xdAfknf9SQ50Wh8b SKOielfoZI83Wa0j6WK/rscsgHLAfaGMPncd/H+PBm1HkT7ZoG6XKoadOPGnEvBXFtP2 /ZOvCNJI5sl3NSC4kFJDhnG0nG6bwYSjTQiAUI/H5O20/oi2wz3ulLf/GzZi/aE8k5Ze HLA250wElkFEB7hc6Ic3vs0EsG+FmvX9mmI/R9cFvQz5QbDe1oQZp0kBgpPwpe4hAXOB fkCw== MIME-Version: 1.0 X-Received: by 10.107.136.230 with SMTP id s99mr25606991ioi.8.1424031496254; Sun, 15 Feb 2015 12:18:16 -0800 (PST) Sender: jakub.php@gmail.com Received: by 10.107.169.216 with HTTP; Sun, 15 Feb 2015 12:18:16 -0800 (PST) In-Reply-To: References: <23dacb400dab7987ce59ba76826cfddf.squirrel@webmail.klapt.com> <103ccee5476f5c444cf5b9d12969b036.squirrel@webmail.klapt.com> Date: Sun, 15 Feb 2015 20:18:16 +0000 X-Google-Sender-Auth: 50j-M9XuoOqCU76URoXy_-eTECs Message-ID: To: Anatol Belski Cc: Xinchen Hui , Pierre Joye , PHP internals Content-Type: multipart/alternative; boundary=001a113ed1ce7bc54d050f262b10 Subject: Re: [PHP-DEV] new json, push generated file? From: bukka@php.net (Jakub Zelenka) --001a113ed1ce7bc54d050f262b10 Content-Type: text/plain; charset=UTF-8 On Wed, Feb 11, 2015 at 11:56 AM, Jakub Zelenka wrote: > > > I would like to push the the bison tab files shortly as the majority of > people in this thread (including me) are for having them in the repo. The > only thing that I would like is to have a specific version in the repo to > prevent big diffs for small changes in the source files. For now I would > like to have there re2c 0.13.6 (thanks for regenerating it back ;) ) and > bison 2.7.1 gen files. I will update Readme at some point as well and add > there that info. > > Hey just a quick update. I bumped the version in the repo for re2c 0.13.7.5 (latest - no changes in generated states ) and bison to 3.0.4 . I updated Readme as well. I have pushed the bison files in http://git.php.net/?p=php-src.git;a=commit;h=911f7b10b1f4c9529bc01580d298a93a5cd6bbd2 . There is an explanation why the C preprocessor guard macro names are file system dependent. It means why there is YY_PHP_JSON_YY_HOME_JAKUB_PROG_PHP_MASTER_EXT_JSON_JSON_PARSER_TAB_H_INCLUDED . It's due to bison algorithm for creating such name. As I noted the only solution that works for me is using different yacc.c skeleton. I have done it in jsond in https://github.com/bukka/php-jsond/commit/583619d7962fa57bf97dcdac4147d8b599a42672 where I have optional bison generation which means that I can stick with one bison version and use custom skeleton file. This is however not possible in the core where we allow range of bison versions which doesn't play well with skeletons that are version specific. When I committed the changes, something went wrong with pushing to github. I hope that my commit hasn't screwed anything up. There is some permission problem probably: Total 5 (delta 3), reused 0 (delta 0) remote: Welcome bukka. remote: Changesets accepted. Thank you for your contribution. remote: remote: Attempting to push to mirror git@github.com:php/php-src.git remote: Permission denied (publickey). remote: fatal: Could not read from remote repository. remote: remote: Please make sure you have the correct access rights remote: and the repository exists. To git@git.php.net:php-src.git 549c6fa..5f82c92 master -> master Cheers Jakub --001a113ed1ce7bc54d050f262b10--