Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128693 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id DD1B61A00BC for ; Fri, 12 Sep 2025 21:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1757714025; bh=WsR7IK0da/NlLhL/BquYDIpE6zWvsaz/c11vVooFyCk=; h=References:In-Reply-To:From:Date:Subject:To:From; b=dzHDVLTBNpfXtT2N6+KmXJcvd5d+e7sRMYLnlCOA574gGVZdYYzl4LSrAUl7N7cmb 1Abd9fNX5xd4dAcX4jWtNMCtc5jgWX3GW2T7W8phF3BsRaI0ErH6bSryhMxs6Q6mgo cPF44Vy6cBF2maQ8e0eVQ0xxCQMpi87LaSaWG+QyrhHHxG7pYSvBC7XpRLbgNeV8oG Zr9n1QOtY8j/ePF8DFTDVz+XxXiPC2KRqa3UAQkGCkY+TkNUotPWXI9YHIeTjXdNZo xLyIU9XmzTGuottjnj0jk33OIrdSO+RsXd+B21TRj17NBZxF4UB19ggKrWS8gLFcnP sqtWDKPsiNYXA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DD6371801EB for ; Fri, 12 Sep 2025 21:53:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 12 Sep 2025 21:53:44 +0000 (UTC) Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-71b9d805f2fso22169836d6.0 for ; Fri, 12 Sep 2025 14:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757714109; x=1758318909; darn=lists.php.net; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wQCj2zxf3lOmd7XfAy8yZB5FRJ+iNkYdTCO7mwcYoP4=; b=Nr6RW/j10+3RkpYT3e9iBl9MnyupLWLBTgGT4mgPMFJX6ufrz7NMjT+f9u7AYbUndf 6lAgxX8rmX79gzbKwa4u/gWbmvezruU6oQOmaJnPpog05XeUka8J5HVY2oHKr0UsBoT3 yYhCI2HHMGLGm0j2Qfi6TWGyrPQWSgn7T6fVWiPdOgHkixbdfR+mgc37ZYzdXEO20ImQ GWyPuWjjDIKOskzNhWvf4bHw65oEYNlX099BSiYrDchgGhpgdy8KwjtF4Si06KPGLJtN dmqpsoE08fPYLlX0UvAgNlAG8XJIZ2+nD17Q8EYFVillW+wanwCFbyTevq5bjmP+vak2 NXdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757714109; x=1758318909; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wQCj2zxf3lOmd7XfAy8yZB5FRJ+iNkYdTCO7mwcYoP4=; b=calDusMT64DXxHRALoQIOzazoCDRNHFaxdpTUBRckSCLZ9354F8IYu7uJc3WOlhfEx oB4xtk/DWwUbmgOAi/htY5a7JpZtfKEryAT369gHUc1sxDB62ig1mOhOCNrdiyDB9Zng CG+jBNfMKViMYgNh1b3AH1lC9ITS/QFcKGZL13SYjLYGdhk6OPwdSLv0DW7a2y6K3LJ6 Tjk1IPg8FQH4OKjZ7XHSoh8f7JZSTO28Ws6Emz3PAzzcfemQKNPdiWU6s4l/0npLYsW6 Rv2SqIHQXpE4aDyG+6h17E+naTcHDkTbwN2qOGCJXRV+dUT5eEQ27Xwr0Jn+G+HDwon3 4h+g== X-Gm-Message-State: AOJu0Ywhb/p4471Qkl2OkR/fUfZQzJS2WSgSCTDKH1JaXc3lV7wxFrG5 k5bXLb6//xZmstLRZ7Q33omRXYNsq0EHtiiY56xYMqs0olgLrQ34m9Bz+SRyWcJ1jSqrqJsy7c1 lb0zi0lqE9QxyFK+M+s7CvuuERTRprdIpdFGSXqbXmA== X-Gm-Gg: ASbGncvaOrUsp7amLmxCyhr8kv5fonHyBhod7IS3gYXDbqf9INKbevmMJ7U5eUHA+CQ 1mS9HNxbIhmX1pUjDua1LPB5d2x9QIsPaLBWSOc2qBb3ukZHX74RAVAsoSCOXT8pu96xbVv652J varBgiZmH3Ms2Z8oDSM8ClmCPxRovWYEj//DKjZNdZS3cT6/59g5d9suXSHVXe3KXxFfQypeN5E Cq7bScGDmymGVE8NyWb6J4p4heI/tbpigeUPuxShA== X-Google-Smtp-Source: AGHT+IHSughpSPauxZvpL5hgzz9EeKsceNKU3R2uqbbREifmiRdhLyZeJMtGvXJLI2itPSibVeR31vXL4v8HTyF7jYk= X-Received: by 2002:a05:6214:226b:b0:71a:e4c5:72c7 with SMTP id 6a1803df08f44-767ba278d78mr60421446d6.7.1757714109539; Fri, 12 Sep 2025 14:55:09 -0700 (PDT) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <1757711671678.1086196219.1095125491@yahoo.de> In-Reply-To: <1757711671678.1086196219.1095125491@yahoo.de> Date: Fri, 12 Sep 2025 23:54:58 +0200 X-Gm-Features: AS18NWA79XMmFzgDEhcl9UByQlPOg_xRZgvjnmiygH4ne66kaQlLDpawniQS3AE Message-ID: Subject: Re: [PHP-DEV] Environment Variable based PHP Extension loading To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi Hans On Fri, Sep 12, 2025 at 11:21=E2=80=AFPM Hans Krentel wrote: > > On Friday 12 September 2025 22:13:04 (+02:00), Soner Sayakci wrote: > > > It's already possible to use environment variables in the php.ini like > so: > > > > extension=3D${PHP_PROFILER} > > > > So it's possible to toggle the extensions already, the only thing that > is > > not working is passing an empty string (I don't want any profiler). Th= en > we > > get warnings like: Warning: PHP Startup: Unable to load dynamic librar= y > '" > > A warning is only a warning. You likely want to see it if the parameter i= s > empty as it is *likely* unexpected. An alternative might be to use a different sentinel for "ignore this directive" might be "-". This way accidentally empty environment variables keep warning, while intentionally set ones can skip the directive. This works with the fallback syntax ${PHP_PROFILER:--}. > > Therefore I opened a pull request to ignore extension entries with emp= ty > > strings, so this works with that case too. Looking for feedback in the > pull > > request https://github.com/php/php-src/pull/19816 > > Commented there with the long version + a small nitpick as your report is > wrong for the directive and the extensions you reference above: Those are > all Zend extensions, not just ordinariy extensions. However: If you provi= e > a non-zero-length-string for an extension you get a much more enhanced > diagnostic message about which files have tried. In your empty string cas= e, > not more files have been tried. So please feel free to add more rationale > what kind of issue is causing you the warning. I don't understand this paragraph. Ilija