Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112945 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20516 invoked from network); 20 Jan 2021 20:41:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2021 20:41:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CBFCF1804F2 for ; Wed, 20 Jan 2021 12:22:00 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 ; Wed, 20 Jan 2021 12:22:00 -0800 (PST) Received: by mail-wm1-f49.google.com with SMTP id c128so3972415wme.2 for ; Wed, 20 Jan 2021 12:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=j+znOI/tBbczacNvGXUKtmCOKyoGMKwHVi4ue6dLn0U=; b=i8jn0ys4zzzMspRoHkEbtrWclvGhs1YMpp+zO1+5WY1nKhHZQD2rMblj2+nj5+iu4g SDOPd+P8aOkuh1vknXkqUVEsegCu0+uc32iICREquJS/6ukYZd4pxCDF8pKV/cQbgs4p Yze5IhPggobP/8wMx1hSDMPH8tuZ3e5FVBRFk9wnBpLQqNtLIZIyjcnREK6RO1upAboP EYMZtV8BueKyMvp3hZspg2W28IeWzwaUlzYlyYFMLu+J9f09pzflXmus+sfBkfum+IMH jFmvlAayPQdOhJy0zNoslTp7aa2GMqYc+nSJHlr6FftWuTzG8fBv9g6lPf2z/XZKuCkK KQaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=j+znOI/tBbczacNvGXUKtmCOKyoGMKwHVi4ue6dLn0U=; b=jyWt9KN/1eeKYj5f71BcKHr3yqfj9Z13FbT4jvU+C+BL2eD0bsv5gOA8AN8PdLhFCJ lHaCdID1pNgUni15un0YofUo9etu3HsGV/Jzm7a+LmkyWa8pazLcd0kCnTGeOQkcL/uG L8j+sQj5bOnJ8VkHLMeQa6CKi6MwmAByfZJRyD03BG16Vkc1uFdd96cz6K18oTM+rzyq KdmSzEVGwqbSpY87ryKwRKGmyEgqIJv/1DFF5dWtEBD2mfTDZva//Magdu/SVzLoyX3j 11CLtTNPXiOXpDyuLp1OVzkq1Dif75ZdlHG5EzG/pg1hUcdLqTTRfzaerqJMgmTyOY/v Jx/g== X-Gm-Message-State: AOAM5323xgpzmPeN8Pplle9KX7PK+ysvhA6/3qnm+JyjWWK4TvvK7bUl bcQNkZwHLeJHEkXtQQDRJXM= X-Google-Smtp-Source: ABdhPJzR5Z8BXzW0o2W+uDIhbfDgBfhrRlTpsUQCuZloshxv3TTFAynddTSly2h7uC51H1UPyW884Q== X-Received: by 2002:a7b:c08f:: with SMTP id r15mr5989523wmh.22.1611174116101; Wed, 20 Jan 2021 12:21:56 -0800 (PST) Received: from claude.fritz.box ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id h1sm2232259wrr.73.2021.01.20.12.21.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jan 2021 12:21:55 -0800 (PST) Message-ID: <1DF0F205-30A4-4FA3-8A58-703BAC6AD732@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_681AF23C-9C57-4294-82A1-01D739C9DDAE" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Date: Wed, 20 Jan 2021 21:21:54 +0100 In-Reply-To: <22e7ebcf-3f98-ff74-8d84-d2b50cda44b7@gmail.com> Cc: internals@lists.php.net To: Rowan Tommins References: <22e7ebcf-3f98-ff74-8d84-d2b50cda44b7@gmail.com> X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [PHP-DEV] Proposal: short_var_export($value, bool $return=false, int $flags=0) From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_681AF23C-9C57-4294-82A1-01D739C9DDAE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 20 janv. 2021 =C3=A0 19:50, Rowan Tommins = a =C3=A9crit : >=20 > Should we be aiming for a single function that can take over from some = or all of the others, and deprecate them, rather than just adding to the = confusion? Or `short_var_export()` could just reuse the existing `__debugInfo()` = magic method (which is already used by both `var_dump()` and `print_r`, = but not by `var_export()`). The programmer would just need to make sure = that `__set_state()` can consume the array produced by `__debugInfo()`. =E2=80=94Claude= --Apple-Mail=_681AF23C-9C57-4294-82A1-01D739C9DDAE--