Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124352 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 D8CCA1A00C5 for ; Wed, 10 Jul 2024 15:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720625147; bh=SuzG5mWQUNk5sPgszU5TREoHjSxsiBOCUtf6sn6Tf7c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=L2dv0WokjNry6vT186TBb7YTKrDU0W74JtXNGC//HXU1W7SODVA+b8vILiJsTTalP 5xaa6G2Ie8W7kidhuJ8fitPgSLOKJAtjIUARWI1MKd1M0RhcKiLcTxQp3ZaeTweAvO yIRVk2pbqpNS8ZYnDd6s2Egd9OMEff0YcYCv7elfMFOa9oLgKwPEDZ4I3aGQGIzopj iWGrc0QuXVMu8pG5Y0y767gEwYksxbhFFdohaw8JiCkiBhYzfU9KswG/vT4loVuM+F jdFZRyCli+g+FpShhme+L2Dshh1P1s+0UN4XKpnR20fDVAae79LNYZny7w8lb23QRP YzpbIP9uP4X+g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 000181806B5 for ; Wed, 10 Jul 2024 15:25:44 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (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 ; Wed, 10 Jul 2024 15:25:43 +0000 (UTC) Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-79f17d6be17so185171185a.1 for ; Wed, 10 Jul 2024 08:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720625056; x=1721229856; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SuzG5mWQUNk5sPgszU5TREoHjSxsiBOCUtf6sn6Tf7c=; b=MQgAc8/zwibpIRwpSwUTmrokUvdcvR9slnNsi66NtxgTZON081BQEOQfl7fhjdjXHx BG4XCb1aydWbDeuW7MULJcY4O2qoVmV/5NIna16r3Ymu+3p5IRNpG3mKJozmeStZWgsd /xNSyrtLSICUoc4WJPSk3CiFWN33rZHOCxmM7opAxs/pQyZwKw7HtxEH3IPwfmHC0pap eSnqAk/NCpj1CMi2kk3PYAc/GMaSRhrZ7D66Ycydxs9iQ5JDIHLMFnG+cafZ+wv4BjNd XKR/evxUUQTLZe/+GGKevPb1sR3MbTRt0bxLG4oj7BWhK4FnAH4XLV4AO4xu1acQLh9Y rm9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720625056; x=1721229856; h=cc: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=SuzG5mWQUNk5sPgszU5TREoHjSxsiBOCUtf6sn6Tf7c=; b=FGUB62KHmB0G3A9jyUP6gb9s/WliVWfU2t0ZmxokiUstHNvpYeRcF+JSV40XB9jtpH C9wGESoC2XkGEPykBEHqwEz0OjVaEzJT82p7FZp/j7gZfhPhCCxDb6qNMH66iOr56B4G 8nllsumkIbCwGeEGDTO0TcCM4REiy75AJwno8XipT/PYuAhFEjEwG+OhrBuAmak6HWPV dCOEHGTrsjnOksrefi1nfGvo6AmFrTT8TBNTRVq/8XhEsy6rmXrxO8b8wMGvsJWT819l SDGDr45VOQIoGWO2QOShWOtjY3zwASK/LRE5zprhcpDmetww89ZQaXs4a9M6LTpfnkbW DI9A== X-Forwarded-Encrypted: i=1; AJvYcCWFk4pKpQkEPjXJj+kdC1u5w3kDNP5fpVSE3Z0wozPz+oB9o+sVIUH5+fJfpHfh4yo7baOqKnATZQXIZHSvXU4GbXwoY3wCDA== X-Gm-Message-State: AOJu0Yz835g0VPwyICbqYD2p10LmQRkypippjCLYiqYu1OhFZMyZLQ3v Ud3XuYEI3tgYrp77MHbrm25y9HmlhAxPqhJDVPxPf85tdylpFxcLKL5KSKCrwHM+Nyhoi5BEVlf z4Lr1jvoYGqz18TSuK4VMQR8B4Tg= X-Google-Smtp-Source: AGHT+IE7cyy5dK5JDYj0lX9gOuofPSLV8jLTbUHqzYkenQRFLxLO80ymmVUK8JhcBFkzpujhxEa06m2Rgw/9n+580qU= X-Received: by 2002:a05:6214:1310:b0:6b5:ebd3:b8f8 with SMTP id 6a1803df08f44-6b61bc7f125mr76433146d6.4.1720625056225; Wed, 10 Jul 2024 08:24:16 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <67DDAB86-18E9-4C89-B1DA-CE8FC1E927F9@sakiot.com> In-Reply-To: Date: Wed, 10 Jul 2024 16:24:04 +0100 Message-ID: Subject: Re: [PHP-DEV] ext/gd adding imagecompare To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: Saki Takamachi , PHP internals Content-Type: multipart/alternative; boundary="00000000000044a1b6061ce63d8a" From: devnexen@gmail.com (David CARLIER) --00000000000044a1b6061ce63d8a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi On Tue, 9 Jul 2024 at 19:16, Tim D=C3=BCsterhus wrote: > Hi > > On 7/9/24 19:53, David CARLIER wrote: > > Agreed, I ll likely just commit as is sometime this week. > > I hereby formally claim that this is not a simple self-contained > feature. It does require an RFC. > > The addition of global `IMAGE_CMP_*` constants effectively introduces an > entirely new "namespace" within the existing list of constants and thus > I do not believe that consistency with the existing GD functionality is > a valid reason. As such I believe they should follow the > https://wiki.php.net/rfc/namespaces_in_bundled_extensions RFC and be > placed inside the `Gd` namespace - or ideally be replaced by a proper > enum or so. > > Best regards > Tim D=C3=BCsterhus > Alright, I hear you. Anyhow, there is a debate for having a full internal version of a somewhat similar feature. We will see.. --00000000000044a1b6061ce63d8a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

On Tue, 9 Jul 2024 at 19:16, Tim D=C3= =BCsterhus <tim@bastelstu.be>= wrote:
Hi

On 7/9/24 19:53, David CARLIER wrote:
> Agreed, I ll likely just commit as is sometime this week.

I hereby formally claim that this is not a simple self-contained
feature. It does require an RFC.

The addition of global `IMAGE_CMP_*` constants effectively introduces an entirely new "namespace" within the existing list of constants an= d thus
I do not believe that consistency with the existing GD functionality is a valid reason. As such I believe they should follow the
https://wiki.php.net/rfc/namespaces_in_bu= ndled_extensions RFC and be
placed inside the `Gd` namespace - or ideally be replaced by a proper
enum or so.

Best regards
Tim D=C3=BCsterhus

Alright, I hear you.= Anyhow, there is a debate for having a full internal version of a somewhat= similar feature. We will see..
--00000000000044a1b6061ce63d8a--