Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115399 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94096 invoked from network); 12 Jul 2021 09:22:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Jul 2021 09:22:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4ED061804D8 for ; Mon, 12 Jul 2021 02:46:09 -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.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (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 ; Mon, 12 Jul 2021 02:46:08 -0700 (PDT) Received: by mail-vs1-f53.google.com with SMTP id b9so751468vst.10 for ; Mon, 12 Jul 2021 02:46:08 -0700 (PDT) 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=XqH11PfS/IW63CQBebOiDxipY2NYzoArfflY3BsfnOQ=; b=c1iPAKWwJlgOk+XVvBVd4rDOxCJekq3pM2et73OAgznD+m1pp+O2f1HzjLeGtQelBW leK3H/DbcrlPWq0gIcBxqQcVFZTgvQ1tTabpZRzm11a2zi/+LhVhf2/2JPtiMR7OvuVQ zANemyK0Ms6QDvS96kvkT3PoWAxr92cvRq2KT/ZipGlA9y31eu8oOKuLQwb5rbafVMGP CdvW4uSVIB8yn2U3HwrHBrqbCvmGdttYs3nXRL8qm2Z9OPQaWt0vs6I5J+YorenPQ2/c Q3/mN1w8XWJElz3vjNXeg1EcwyIs7S82FBx7E85AEwiagflFQAQW9xPgSfGDJU41p3XQ 14PQ== X-Gm-Message-State: AOAM532xLJjpFZkJiaXTjdE2b4Wi8RVcAvDVY4Ay2qm+vm6P6wYLPNN6 v9zoaKkNDAe9WgL32kZquTIgTCmrdXbup73Uxg== X-Google-Smtp-Source: ABdhPJw3uO2M0YAEcPzpiRE1m0WyBHlcoK++lo9XnPIh8m4AgmtMENMd3j4fRfvmtcdxMPVA5iG6V+423hDooX6zivM= X-Received: by 2002:a67:6a42:: with SMTP id f63mr5138956vsc.8.1626083167347; Mon, 12 Jul 2021 02:46:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 12 Jul 2021 11:45:57 +0200 Message-ID: To: Nikita Popov Cc: Pierre , PHP internals Content-Type: multipart/alternative; boundary="00000000000090a9c805c6e9fdb7" Subject: Re: [PHP-DEV] Fake Closure Comparison From: patrickallaert@php.net (Patrick ALLAERT) --00000000000090a9c805c6e9fdb7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le lun. 12 juil. 2021 =C3=A0 11:42, Patrick ALLAERT a =C3=A9crit : > Le lun. 12 juil. 2021 =C3=A0 09:51, Nikita Popov a > =C3=A9crit : > >> I'm also not sure where this would be actually useful (though I'm okay >> with including it, as the functionality itself seems sensible). As Patri= ck >> Allaert suggested this, maybe he can comment on some use cases. >> > > I can't really see a useful case either, it was more rhetorical. > Maybe: if ($f =3D=3D unlink(...)) { logging("Deleting $x"); } $f($x); --00000000000090a9c805c6e9fdb7--