Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79802 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89911 invoked from network); 18 Dec 2014 09:25:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2014 09:25:28 -0000 Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:49896] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/70-21720-48D92945 for ; Thu, 18 Dec 2014 04:25:25 -0500 Received: by h1123647.serverkompetenz.net (Postfix, from userid 33) id 26D7D23D6007; Thu, 18 Dec 2014 10:25:22 +0100 (CET) Received: from 87.159.50.148 (SquirrelMail authenticated user anatol@belski.net) by webmail.klapt.com with HTTP; Thu, 18 Dec 2014 10:25:22 +0100 Message-ID: Date: Thu, 18 Dec 2014 10:25:22 +0100 To: internals@lists.php.net User-Agent: SquirrelMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Merging PHP5/PHP7 From: anatol.php@belski.net ("Anatol Belski") Hi, the native-tls branch was just merged into master. As all the TSRMLS_* occurrences was removed, some more merge conflicts are to expect when it comes from PHP5 to PHP7. I would like to suggest a merge strategy to minimize the negative effects. Also this will be useful to port the existing patches and extensions. Here is a tool https://gist.github.com/weltling/8e8e0965bc471d254acc I used to remove the TSRMLS_. Generally there are two cases: 1. merging from PHP5 and there is no conflict, then - just run remove_tsrmls.php on the php-src and commit if needed 2. merging from PHP5 and there is a conflict, then - while in conflicted state, run remove_tsrmls.php - resolve conflicts and commit For the case 2. - removing the tsrmls in the conflicted state usualy allows a better sight on what is happening, IMHO. Of course, one could merge with TSRMLS_ first and remove it afterwards. Please also see the UPGRADING.INTERNALS section and the RFC for some details. Regards Anatol