Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116295 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59978 invoked from network); 24 Oct 2021 10:42:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Oct 2021 10:42:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F0D9E180382 for ; Sun, 24 Oct 2021 04:31:22 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 24 Oct 2021 04:31:21 -0700 (PDT) Received: by mail-pj1-f43.google.com with SMTP id pi19-20020a17090b1e5300b0019fdd3557d3so6248767pjb.5 for ; Sun, 24 Oct 2021 04:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4a5WtdKu1+Nn3V1ywZN67iO91nRadPeWZVE0dhChxsc=; b=diCzZLCWjoynKAyHVwy3Rpgte2iaXnvfONqSadGoBn5OwNtAzLG1nl9EZFl/3g2FKW XFsKuxv8LHBqsoy4Ftjt9infiXKilN9xCwS/Xlx+fNUMeQzKa1lG0PqJfAZJXdIelw/a dhADm9Hu1WP2jfQka2KaToB9PlwVvcTz10vcnIQXnIEuOMnQOcTfQa0Ae4vE3sP1vGj4 2PQ5CfZQls7ikM01msR9XtSckApOelAR8b6ECSf5d9HTct+Xmvyht9QRplSAPSL2pwsX UzvcxrJgGIgtfWDuSqZs2GmBp+oDCbDQwFivhXTI5BXEtq/BS0eyauefjgcN8e3xBMl8 lC4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4a5WtdKu1+Nn3V1ywZN67iO91nRadPeWZVE0dhChxsc=; b=NxjE95JF+OC8mnOFlx7IXv9hIykyh0sQ4QQf9Z6KmBd7fh7pajea3o1bh1aW8lx6hC xd0RyTIOoR6aCn3EELAz0Sn4w/vlpNlhoLJchHfg1IsoZ1x9I4N2Xab0clvVluTzfnRJ BO1JDtpovBkksk1eQgYexo6LBzcsJJhnE1ZlFWtVPC5UHcxBtc3Gv1TxhpsAX7OCTifl Ck0Xg1v84VAuc8n2mvHD+FK31Tk4HBRcBTeNqwNUprIQhWpsDTbtZNFussBnxf2sY+BH RbfKQPtIhyqkH+khxxdVdtZQWHtI7jbgWoF+lRVXSfGzFSiW++dvx+6q8HXZeGYIVoi2 QraA== X-Gm-Message-State: AOAM532BSpLQ1pvfuJpuh8oCgHhOkDCsgEdL+6AIB7Cc8PxCqSZHBd+4 bVVOrZCuEKkokYwi+Krcsk9jF2ghLQmKXjnIrGijo25ZxeI7mA== X-Google-Smtp-Source: ABdhPJxw+WBTSOPbPDuOhXF4fozrYMeJ/i7zgJJJWHuzFvkZ4ajIGjKaBhHrIY0OhaPMxygH2aNC2jKw9HUVDS+1EOc= X-Received: by 2002:a17:902:db04:b0:140:4edd:db19 with SMTP id m4-20020a170902db0400b001404edddb19mr1258460plx.2.1635075080194; Sun, 24 Oct 2021 04:31:20 -0700 (PDT) MIME-Version: 1.0 References: <5872e8bb-d944-2fae-938f-ae1948b2660b@gmail.com> <18cf67d6-dca7-22e0-3a9a-8fc5f1b36539@heigl.org> In-Reply-To: Date: Sun, 24 Oct 2021 13:30:43 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000560de405cf179566" Subject: Re: [PHP-DEV] Unbreak git.php.net links? From: divinity76@gmail.com (Hans Henrik Bergan) --000000000000560de405cf179566 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable if the actual hosting is an issue, i can host it until at least through September 2024 (i can probably host it longer, but that's the longest i can guarantee, like even if i get hit-by-a-buss-tomorrow), just add the following DNS records for php.net: git.php.net. 1 IN NS ns1.dreamhost.com. git.php.net. 1 IN NS ns2.dreamhost.com. git.php.net. 1 IN NS ns3.dreamhost.com. and delete the current A record for git.php.net, and everything else is ready to go.. notably, it seems git.php.net never supported httpS, but it wouldn't be any trouble to add httpS support too. (but if there is no actual https links in the wild, I'm guessing it won't add much value) On Sun, 10 Oct 2021 at 13:10, Ayesh Karunaratne wrote: > > > > Soooo, what's next? > > > > On Tue, 5 Oct 2021 at 18:06, Hans Henrik Bergan > > wrote: > > > > > @Ayesh thanks, added support for those url ( > > > > https://github.com/divinity76/git-php-net-redirector/commit/072a579d140a7= 481e76e95bd8c2d120ee2f71565 > > > ), also it looks like version numbers got mixed up in your example #2= , > > > "8.0.0RC2" vs "8.1.0RC3", that is surely a typo? > > > > > > >It is the name of the git repository on git.php.net. There were > > > several other repos for PECL, bug tracker, docs in multiple languages= , > > > etc. I have added support for a static list that maps git.php.net > > > names to GitHub repo under `php` organization namespace. > > > > > > oh i see. > > > > > > fwiw, your implementation looks more professional / enterprise-y :) > > > > > > > > > On Tue, 5 Oct 2021 at 15:43, Ayesh Karunaratne > wrote: > > > > > >> > here is an initial implementation: > > >> > > > >> > https://github.com/divinity76/git-php-net-redirector/blob/main/src/redire= ctor.php > > >> > it is just a minimum-effort implementation, anyone feel free to ma= ke > > >> > something better (also i have no idea how the "p" argument is > supposed > > >> to > > >> > be parsed, so i just guessed) > > >> > > > >> > it passes "Stanislav Malyshev"'s initial sample url, but it probab= ly > > >> fails > > >> > on any other formats, if anyone has test urls, share em > > >> > > > >> > > > >> > > > >> > On Mon, 4 Oct 2021 at 08:38, Hans Henrik Bergan < > divinity76@gmail.com> > > >> > wrote: > > >> > > > >> > > >So who's going to work on it? Doesn't make sense to have 5 peop= le > > >> work > > >> > > > on it independently from each other ;-) > > >> > > > > >> > > if nobody else wants to do it, i can make an initial > implementation on > > >> > > october 9th (6 days from now), > > >> > > > > >> > > but wouldn't surprise me at all if someone else wants to do it ^= ^ > > >> > > > > >> > > > > >> > > On Mon, 4 Oct 2021 at 08:01, Andreas Heigl > wrote: > > >> > > > > >> > >> Hey all. > > >> > >> > > >> > >> On 04.10.21 07:52, Hans Henrik Bergan wrote: > > >> > >> > there's also plenty of broken links on reddit to git.php.net > , ref > > >> > >> > https://www.google.com/search?q=3Dgit.php.net+site%3Areddit.c= om > > >> > >> > > > >> > >> > it wouldn't be hard to set up a redirector parsing commit ids > out > > >> of the > > >> > >> > url and redirecting to github, > > >> > >> > +1 from me. > > >> > >> > > >> > >> So who's going to work on it? Doesn't make sense to have 5 peop= le > > >> work > > >> > >> on it independently from each other ;-) > > >> > >> > > >> > >> Cheers > > >> > >> > > >> > >> Andreas > > >> > >> -- > > >> > >> > ,,, > > >> > >> (= o > o) > > >> > >> > > >> > +---------------------------------------------------------ooO-(_)-Ooo-+ > > >> > >> | Andreas Heigl > > >> | > > >> > >> | mailto:andreas@heigl.org N 50=C2=B022'59.5" = E > > >> 08=C2=B023'58" | > > >> > >> | https://andreas.heigl.org > > >> | > > >> > >> > > >> > +---------------------------------------------------------------------+ > > >> > >> | https://hei.gl/appointmentwithandreas > > >> | > > >> > >> > > >> > +---------------------------------------------------------------------+ > > >> > >> > > >> > > > > >> > > >> > > >> Hi Stanislav/Hans, > > >> Thanks for opening this conversation and the initial implementation. > > >> > > >> Having worked with a few cgit repositories before, I happen to recal= l > > >> some of the other URL patterns. I worked on a similar implementation > > >> to Hans's at https://github.com/Ayesh/git-php-redirect > > >> > > >> > something better (also i have no idea how the "p" argument is > supposed > > >> to > > >> > be parsed, so i just guessed) > > >> > > >> It is the name of the git repository on git.php.net. There were > > >> several other repos for PECL, bug tracker, docs in multiple language= s, > > >> etc. I have added support for a static list that maps git.php.net > > >> names to GitHub repo under `php` organization namespace. > > >> > > >> In addition to the URL patterns Hans have covered > > >> (p=3Dphp-src;h=3DHEX{40}), I thought to add a few more patterns: > > >> > > >> - FROM: http://git.php.net/?p=3Dphp-src.git;a=3Dcommit;h=3D5af586be = ( > > >> `/[a-z0-9]{7,}$/` ) > > >> TO: https://github.com/php/php-src/commit/5af586be > > >> > > >> - FROM: > > >> > https://git.php.net/?p=3Dphp-src.git;a=3Dshortlog;h=3Drefs/tags/php-8.0.0= RC2 > > >> TO: https://github.com/php/php-src/releases/tag/php-8.1.0RC3 > > >> > > >> - FROM: > > >> > https://git.php.net/?p=3Dphp-src.git;a=3D{tree,log,shortlog};h=3Drefs/hea= ds/master;hb=3Drefs/heads/master > > >> TO: > https://github.com/php/php-src/{tree,commits,commits}/master > > >> > > >> - FROM: http://git.php.net/?p=3Dphp-src.git;a=3Dlog > > >> TO: https://github.com/php/php-src > > >> > > >> Cheers, > > >> Ayesh. > > >> > > > > > From what I could observe: > - DNS for git.php.net still resolves to 208.43.231.11 IP address. > - Server at 208.43.231.11 does not listen/accept HTTP(S) traffic. > - git.php.net was previously served with *.php.net TLS certificate. > > I suppose the next steps would be to: > > 1. Check if the DNS is correctly configured, and make sure > 208.43.231.11 is indeed an IP address that we could use. > 2. Setup vhosts and TLS for git.php.net. > 3. Setup the redirection script. > > @Hans Henrik Bergan opened PR at > https://github.com/Ayesh/git-php-redirect with test cases, and I think > his approach at a simple redirect script works and supports the same > patterns too. > > That said, it wouldn't be terribly inconvenient to redirect all > traffic using the Nginx/Apache rewrite rules either. We wouldn't even > need to have a PHP-FPM or alike running that server. > > Cheers, > Ayesh. > --000000000000560de405cf179566--