Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126420 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 qa.php.net (Postfix) with ESMTPS id C48081A00BC for ; Sun, 16 Feb 2025 00:31:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1739665719; bh=vVH/px9CmBK91gAPMKHZXLl7P6m4n+ZoVcpVR4esOzc=; h=From:Date:Subject:Cc:To:From; b=i0mSYJp7NPPrckvXZ+W+CPCADRVG2hITabMgQnxxWsKg2cL6Mz7t4UyuoAPglYt0i ScPPAyUW8w0mufYYnLfENS//wQ7p9IkaQkUl/Hd0F0Iki/ctFqrSO7evqLrW8a2/2G vJK5yiTlwoGp29jmR8lMhBgI/zXKXSnoCaM9WbI7HhzGei66qwgL/RC9tZAHJAZ8QF I3bl/kpTOP4PkbLqmnOE2jGk1iEVP5JuJRP1ytOYDnaKNIsP3TVp/BUOWL9FqeNILA 5RZFzUVaONFdOtyFxQRjAzkGH34SVszf8M+2eNpeosKoR8RUe+8+IF3muWSv7JMzTF 8o9QD2tE7iOpw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2A64A180059 for ; Sun, 16 Feb 2025 00:28:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: *** X-Spam-Status: No, score=3.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DMARC_NONE,HTML_MESSAGE,MIME_QP_LONG_LINE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 ; Sun, 16 Feb 2025 00:28:37 +0000 (UTC) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-221057b6ac4so12596425ad.2 for ; Sat, 15 Feb 2025 16:31:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daveyshafik-com.20230601.gappssmtp.com; s=20230601; t=1739665878; x=1740270678; darn=lists.php.net; h=to:cc:message-id:subject:date:mime-version:from :content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=h0VOINtwwXgIW4YVJUx+Gv+fn2jdAHV4qZqTrRySnJ4=; b=pVS/6QQnGYR3t18yn8SqCUdC6rRzaWhZ2Q+bHEH1yds9w0KYWre+ENKWRCp5wtA+G7 vO8AqokePRCgY2zg9lGBM0rdUCLbnIHZdIz0YdyjmbmfkhOp+NrJkVdZ6YQU08j2gXQV tLVlbZSxttxsIjOUf8CqxXK7KHo6QPl0v8YfFjha0XUx8PfUh+Gjpmtth0cLb48VaRB0 6dlJCUckePb59lZFSnwNGxkTJNLpa2AGMC6u5IrC4srFYdgSAn4l1lTfmEEOFm6QvosI l2lWML1JMgwsaqmiFc5j0ixomKvpNGRhEx0QIsA21dJXk/bzH7uoQHKhEUDuAY6lGrFv RSVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739665878; x=1740270678; h=to:cc:message-id:subject:date:mime-version:from :content-transfer-encoding:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=h0VOINtwwXgIW4YVJUx+Gv+fn2jdAHV4qZqTrRySnJ4=; b=BkxwZ75abh3clNxPYrhaJZsSKB9K/XffF1KonvzpnapctcGKBwGH7fa/losSfi8MFb M78YckcPbX5BK+GluXVLfBbdea49E5EoheR+LzGtqiOMMCP/8ww5wr2vH0IjiNJDTdzF SFRzlYQWGkg2sb1OCuDlTz30MR2DCaJiD+y20XDt6h1n3rJ7hRm0xlwaIYW7UVf7i9kP aWWhNfOz4feiqmb4YBhtHCvBJTOoTo/Sp5DoNi2XWaCMNytdrkfM3CrwG9LIlCZlI8IK 9LDH6924Ye1kVNGE/vANsFjrUgGsKP4fah73jKVQOL13uEL9NETIqrosEH9xYSGP2L9q t8mQ== X-Gm-Message-State: AOJu0YzHSTx60gnYgrAd1FjGpMyFdhMengf7UEoX/mIlzBDctDLyYpOF VJZPnJ85m/TLIPETgD/zORA37ZifhFIrBkRgYFIq/EP47I4ZcUGsvCMBhAHkaznf5fkg9vUiib/ U+JqbORn3zgDpS721deNPnV+BgTV7cMdzc2cKowHl6RqCpxjptLDGM4JWu+tYWf6DvC7IYskROq BKOf39jpZrdN4ByFYiuSiKCoIx5uda7lLpyfAr X-Gm-Gg: ASbGnctYYMxjMt3sdNSjiP4b2Rjx6zRYqki3E+IoPaJRn4IDSapdT/58PPszGv8TOqt bhbznhJiqyGNMWaleGOyjlMA6bZvvQ0x+CMT2EF/Iel2CpL/pvHmV/E87a05Ijzx6SuYMTm1sOb YUxTtkW7DY6oUgr8x4LKDtgefxGuQQVS3w/6udFf8fwktaP6XnHb4+FlPCuyA2mWVyjPsCC/rQM S2ex7nEn5LhE/s7gWioeUYqTcZt9IIKbPabrfsFIwH5xlEm2PdNgZq6TiapxL7GVm1K6WVwCyV7 AX9PhJlXAaBiuiJzFQXsOmUHpH5hGsD3bcX/li+Bde0m+h/nATlR+n1hnVWBrhKx0gGKiZI= X-Google-Smtp-Source: AGHT+IGOM7B/3yDDy7MYvks0Zt738p/SDu7fkPxnXUAH3jPm6WF1UtEWgYdtuKpJ/eNUFW079iX5KQ== X-Received: by 2002:a17:903:2341:b0:21f:89e5:2715 with SMTP id d9443c01a7336-22104056b09mr75675845ad.19.1739665877735; Sat, 15 Feb 2025 16:31:17 -0800 (PST) Received: from smtpclient.apple (c-67-185-149-237.hsd1.wa.comcast.net. [67.185.149.237]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d5363848sm49402905ad.55.2025.02.15.16.31.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Feb 2025 16:31:16 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-BBF012AF-55BE-422E-AD97-F83EBDA9AC98 Content-Transfer-Encoding: 7bit Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (1.0) Date: Sat, 15 Feb 2025 16:31:05 -0800 Subject: Re: [PHP-DEV] CLI/CGI -z command line options is broken Message-ID: <31B7CD98-5CCB-4E5F-82AA-90B2F3E70892@daveyshafik.com> Cc: internals@lists.php.net To: Niels Dossche X-Mailer: iPhone Mail (22D63) From: me@daveyshafik.com (Davey Shafik) --Apple-Mail-BBF012AF-55BE-422E-AD97-F83EBDA9AC98 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Why not make -z an alias for -d zend_extension? - Davey > On Feb 15, 2025, at 15:23, Niels Dossche wrote: >=20 > =EF=BB=BFOn 2/10/25 11:14 PM, Larry Garfield wrote: >>> On Mon, Feb 10, 2025, at 3:24 PM, Niels Dossche wrote: >>> Hi internals >>>=20 >>> We received a bug report (https://github.com/php/php-src/issues/17740) >>> that the `-z` command line option for CLI/CGI doesn't actually work. >>> This option is supposed to load a zend extension using a command line >>> argument. >>> However, it turns out that the extension doesn't actually load: PHP >>> will claim that the extension's loaded (in some places), but in reality >>> it never loaded properly. >>> I did an analysis of why this is happening in that GitHub thread, and a >>> clean solution isn't straight-forward. >>> Christoph figured out that this option has been broken since at least >>> PHP 5.5, a long time. >>> As passing `-d zend_extension=3Dfoo` on the command line is already a >>> suitable replacement, we'd like to just remove the `-z` option in PHP >>> 8.5 instead of fixing it. >>>=20 >>> Are there any objections against this? Please let us know. >>>=20 >>> Kind regards >>> Niels >>=20 >> Seems reasonable to me. Perhaps update the -d help text accordingly, if n= eeded? >>=20 >> --Larry Garfield >=20 > Hi >=20 > Just to clarify: the -d option just sets an ini option. > One idea could be to make -z print out a message telling the user to use "= -d zend_extension=3D...". That would make the transition more "gradual". > OTOH this didn't work for ages so nobody realistically relies on this opti= on. >=20 > Kind regards > Niels --Apple-Mail-BBF012AF-55BE-422E-AD97-F83EBDA9AC98 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Why not make -z an alias for -d zend_extens= ion?

= - Davey

On Feb 15,= 2025, at 15:23, Niels Dossche <dossche.niels@gmail.com> wrote:
=EF=BB=BFOn 2/10/25 11:14 PM, Larry Garfield wrote:
On Mon, Feb 10, 2025, at 3:24 PM, Niels Dossche wrote:
=
Hi in= ternals

We received a bug report (https= ://github.com/php/php-src/issues/17740)
that the `-z` com= mand line option for CLI/CGI doesn't actually work.
<= /blockquote>
This o= ption is supposed to load a zend extension using a command line
<= /blockquote>
argument.
However, it turns out that the extension d= oesn't actually load: PHP
will claim that the extension's= loaded (in some places), but in reality
it never loaded p= roperly.
I did an analysis of why this is happening in tha= t GitHub thread, and a
clean solution isn't straight-forw= ard.
Christoph figured out that this option has been broke= n since at least
PHP 5.5, a long time.
= As passing `-d zend_extension=3Dfoo` on the command line is already a
suitable replacement, we'd like to just remove the `-z` option i= n PHP
8.5 instead of fixing it.
=
Are there any objections against this? Please let us know.

=
Kind regards
Niels<= br>

Seems reasonable to me.  Perha= ps update the -d help text accordingly, if needed?

--Larry Garfield

Hi<= /span>

Just to clarify: the -d option just sets an= ini option.
One idea could be to make -z print out a messag= e telling the user to use "-d zend_extension=3D...". That would make the tra= nsition more "gradual".
OTOH this didn't work for ages so no= body realistically relies on this option.

K= ind regards
Niels
= = --Apple-Mail-BBF012AF-55BE-422E-AD97-F83EBDA9AC98--