Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115626 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51964 invoked from network); 3 Aug 2021 17:23:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Aug 2021 17:23:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 78A601804CF for ; Tue, 3 Aug 2021 10:52:34 -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=-1.8 required=5.0 tests=BAYES_00,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-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 ; Tue, 3 Aug 2021 10:52:33 -0700 (PDT) Received: by mail-pl1-f181.google.com with SMTP id z3so23321492plg.8 for ; Tue, 03 Aug 2021 10:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=If1C7aeshE30ZE3jiheSWuTIxDj5NFAUcQvKIJfd3rk=; b=FYMfvxO20NS8D+/1L8TUM0rn3HGUa5uWADWrEUPjxAp7adpI484axwJbRp7Pu9+PyM RVpCVW2KEg9ugC0iaMqDcQbziFAHv91i2lC2Z5oW9t3RJMgVcm93gkaj9mr4EY0JJpe0 BWBEVFP8IQzmJklUI7ybd95f/xtSD+wSD4U1P3wHcx3TbC1Ejdu/lo9CXpczDmxJyh/h se3W4LBOWUgIrzDya8yfryqB9jyeAl6XdthZjcPuAU9HcDBWY0YEG1W/OZbbuB0kcXEd qx2166XnAd5Vxc5X0H1KAIBmf7ZwYCqTK+1iwI3EAMhFxXHtg4kdHQ6vYSQkX3d53cv4 rMfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=If1C7aeshE30ZE3jiheSWuTIxDj5NFAUcQvKIJfd3rk=; b=HVHROpXqQiF//Uvzyy3zvuK/G+j2notUnw95xfQ+KvuNq5QrgMtHoy1EJGdUEVsDzg jDghNq76LWziRbkRN1kckw943BbOxBzzsw8yiIGi9O7tnu16YFdW6nXUjoW2YUz2qMR0 a+LhTCwRBshuuKXpivMvrorsdXa0lFQaZMA/40xsdQMfV73wUNL+xQ7O1+rk50VYg2N4 jv0Fzdlwvcc9oidO2BUGd+Q4+oqAqjHqW7TsfSQy+n9PG5Z3M3/VrMkbI7obNHoB8htH c8162+oWA11XA+umxmoPuaoolGCvDaAtDXc4wC21ymiOgDwey3YevyNu8+yn+WUK8YzG G9UA== X-Gm-Message-State: AOAM531ZYVSM0c/6w9yeRjEaW/zz4qCUnErAu+srqGFOP5ZRoF6PFZ4H wQjSgjyy/dDzoxh6jWxUj4EHv0s8rctO9HTUwkhO8MHGhGJKPw== X-Google-Smtp-Source: ABdhPJyGdBYkuMFkCCmV8pHdgMisHi8aqa+Cr1vfhEC3YHbYCCkRj5an/+MZ/P+jHYSZD9kWchofh/GXYXQCRi4bNE4= X-Received: by 2002:a17:902:8348:b029:12b:b2a0:941b with SMTP id z8-20020a1709028348b029012bb2a0941bmr1568658pln.62.1628013151969; Tue, 03 Aug 2021 10:52:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 3 Aug 2021 19:51:55 +0200 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000009ce77e05c8ab59c2" Subject: Re: [PHP-DEV] [RFC] Under Discussion: Default User-Agent for cURL From: divinity76@gmail.com (Hans Henrik Bergan) --0000000000009ce77e05c8ab59c2 Content-Type: text/plain; charset="UTF-8" > > or doing nothing at all. > Sounds good to me. On Tue, 3 Aug 2021 at 16:47, Sara Golemon wrote: > On Tue, Aug 3, 2021 at 4:45 AM Hans Henrik Bergan > wrote: > >> fwiw i think no self-respecting codebase is depending on an ini-setting >> being correct for the ua in cases where the ua is actually important, so >> the breakage should be minimal. >> >> > In my mind, this is either an argument in favor of either NOT adding a new > INI setting (rather applying the existing user_agent setting to curl), or > doing nothing at all. Code using curl already knows how to call the > precisely ONE line required to set a user agent, or more likely uses a > wrapper which simplifies cURL's archaic interface, in which case it's that > proxy which should be setting any default UA, not PHP. > > And on the subject of PHP_INI_ALL/PERDIR/SYSTEM. The answer is ALL. > PERDIR and SYSTEM exist either for technical limits (something gets > allocated and has to live across requests), or security limiters. The > former certainly doesn't apply, and the latter wouldn't achieve anything > since the UA can always be set explicitly on any curl handle. PHP_INI_ALL > is the only setting which makes sense if we add an additional configuration > (which I don't think we should). > > -Sara > --0000000000009ce77e05c8ab59c2--