Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119595 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54479 invoked from network); 22 Feb 2023 21:09:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Feb 2023 21:09:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 62A42180341 for ; Wed, 22 Feb 2023 13:09:41 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS16276 46.105.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from 6.mo575.mail-out.ovh.net (6.mo575.mail-out.ovh.net [46.105.63.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 22 Feb 2023 13:09:40 -0800 (PST) Received: from director5.ghost.mail-out.ovh.net (unknown [10.109.146.211]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 4814D235F9 for ; Wed, 22 Feb 2023 21:09:39 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-lrl7x (unknown [10.110.115.220]) by director5.ghost.mail-out.ovh.net (Postfix) with ESMTPS id B926A1FD1F for ; Wed, 22 Feb 2023 21:09:38 +0000 (UTC) Received: from php.earth ([37.59.142.107]) by ghost-submission-6684bf9d7b-lrl7x with ESMTPSA id tuaTIZKE9mOb3QcAqUcxBw (envelope-from ) for ; Wed, 22 Feb 2023 21:09:38 +0000 Authentication-Results:garm.ovh; auth=pass (GARM-107S00169657e51-560e-4bda-ae56-5ac3cc62742f, 211509286162EE35D181E817281DDCF73DD9FFC6) smtp.auth=peter.kokot@php.earth X-OVh-ClientIp:209.85.216.50 Received: by mail-pj1-f50.google.com with SMTP id nt5-20020a17090b248500b00237161e33f4so7816086pjb.4 for ; Wed, 22 Feb 2023 13:09:38 -0800 (PST) X-Gm-Message-State: AO0yUKVBgUBbHbdwFY6A7CAXBJSTmfNOMwTy532D9A9GrfdBkV/IamVp 3n1o7lGCUm3ghkx+1q1OSdK5aLP5F/EGNdIQ2V0= X-Google-Smtp-Source: AK7set8HX98A3145/fy1huNt9FsvY/Bkagb4KSCKFFyKJUQQY/UH6/rKtJbCLakHFJ/DbJ9IDXcSpL++StzxwTq53iI= X-Received: by 2002:a17:90b:384c:b0:233:fbf8:6876 with SMTP id nl12-20020a17090b384c00b00233fbf86876mr2095601pjb.57.1677100173164; Wed, 22 Feb 2023 13:09:33 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 22 Feb 2023 22:09:21 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Max Kellermann Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" X-Ovh-Tracer-Id: 9552979236039614982 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrudejledgudegfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepgghfjgfhfffkuffvvegtsehttdertddttdejnecuhfhrohhmpefrvghtvghrucfmohhkohhtuceophgvthhksehphhhprdhnvghtqeenucggtffrrghtthgvrhhnpeevleefjeetieejteduleevuedvgfduueeludekiedtteejvdduudekveeigfdvfeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhphhhprdhnvghtnecukfhppeduvdejrddtrddtrddupdefjedrheelrddugedvrddutdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeophgvthhksehphhhprdhnvghtqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvghtpdfovfetjfhoshhtpehmohehjeehpdhmohguvgepshhmthhpohhuth Subject: Re: [PHP-DEV] LDFLAGS broken? From: petk@php.net (Peter Kokot) On Wed, 22 Feb 2023 at 14:14, Max Kellermann wrote: > > On 2023/02/22 13:45, Max Kellermann wrote: > > 13 years ago, there was commit > > https://github.com/php/php-src/commit/477649cd3f09 which attempted to > > fix this, but was reverted on the same day by commit > > https://github.com/php/php-src/commit/16450418b188 with just commit > > message "Revert bad patch" but nothing else, no explanation what was > > bad about the patch. > > Oh look, there was an "edit war" with a bunch of commits repeatedly > adding and commenting this "unset LDFLAGS" line: > > https://github.com/php/php-src/commit/c4d84aa33390 > https://github.com/php/php-src/commit/21a6e1f96229 > https://github.com/php/php-src/commit/937358ebc7a6 > https://github.com/php/php-src/commit/477649cd3f09 > https://github.com/php/php-src/commit/16450418b188 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php From my quick check, the unset is initially done to move the currently set flags to extra flags variable and clean the variable for further additions so there are no duplicate ones or something like that. https://github.com/php/php-src/commit/9417570dc1f31a0e3ddb9f6736a547c87ce7cfba There seems to be another unset done to this change here: https://github.com/php/php-src/commit/c4d84aa33390045cd4ff542719a0f79cff52fb7c which fixed some bugs related to linker errors and duplicate symbols. https://bugs.php.net/bug.php?id=14616 https://bugs.php.net/bug.php?id=14824 Most likely, some of those three unset lines could be removed today, yes, but I can't be sure. If removal would fix some bug, then probably it is time to remove them and see where things break afterwards.