Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112946 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26908 invoked from network); 20 Jan 2021 22:04:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Jan 2021 22:04:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 63FE11804F2 for ; Wed, 20 Jan 2021 13:44:35 -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, 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-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 13:44:34 -0800 (PST) Received: by mail-wm1-f54.google.com with SMTP id v184so4140047wma.1 for ; Wed, 20 Jan 2021 13:44:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=cn/zAH+y1ygACEzhLBbxQdpJEe2HI2kJadyuuU5b2k0=; b=usaJvsncVrTBqor1urqG7pow7bfZUCvQxwlZjf2O1MWkBLLNdv8ykove82019eYrVi fZzkWFWouT4zoiOpJUjiw3MBcHiiM0eFq8xKyTExN8pCGpzoBK1CdzH4wxm9SBK86G+1 wF+9oLFhaofNH2eFOr0PwJMpy3Vi9BXDfHOXesOflWaB1JpniMy1AsVdkz6a8tws3qF4 +Q06eziJfpokzPr/hRockcHYJ6dV1qBJ2QMM0g8boxO75HrHRX2vT6DokCw5cpC6z9ft RVcXOXzyH0FYIs6x8Q2t/h6WXjpF/r7uDrrtIjlOPB/eXexsyAL5XS+KAegil0WsGMlT qJAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=cn/zAH+y1ygACEzhLBbxQdpJEe2HI2kJadyuuU5b2k0=; b=GWvffX9x5v75YMxDuL+cdzIyfGDLsYYl3SojHTkoI+5QJa9Z5z+lAjno9NbsnVeHEW x3d1lAp3Bju9WUi40eRm2R4w+S6dXJrwIOWs/qMH0W+KrtN32wwWpwjxhj7n0T+u7diQ qZWwf4T+B+0DAF5jPTeMq1Xqs8nOxn6UPa2iUW6O3Bfy6AY44tFiqBTe0SzGCxMs49Ei hFCHgUpsQDUITK7klZs4qy9Y/SNKWypUr6ZhNqmxuCZVPMSYWdddMGm19Tzhv7pxL6Oa +/IvwwnmatVTeIFydWhN5iREdqcQ2ZlIj2KMCIW9eLHssMuNExJaHjWpO3YMtieIVUAK FvZw== X-Gm-Message-State: AOAM531Z3CFAFnXm1H9BwXD86USKaF5dUNfgzYzJ/OotRvX4Y8gEFxsl We3DHRsGt6JsBpbnHhA2lZDalaUaYYc= X-Google-Smtp-Source: ABdhPJzQ5uUULR7ierPVkzZy7Ll3zw0Hab01jj5MtIukvGwL+/Z4v0c3Kx37c0kRpVumrDYQaY7jHQ== X-Received: by 2002:a7b:c45a:: with SMTP id l26mr3776155wmi.164.1611179071924; Wed, 20 Jan 2021 13:44:31 -0800 (PST) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id b64sm5858805wmb.26.2021.01.20.13.44.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Jan 2021 13:44:31 -0800 (PST) To: internals@lists.php.net References: <22e7ebcf-3f98-ff74-8d84-d2b50cda44b7@gmail.com> <1DF0F205-30A4-4FA3-8A58-703BAC6AD732@gmail.com> Message-ID: <18afe2ed-0802-8f76-b094-64d5ff8cf37f@gmail.com> Date: Wed, 20 Jan 2021 21:44:30 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <1DF0F205-30A4-4FA3-8A58-703BAC6AD732@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] Proposal: short_var_export($value, bool $return=false, int $flags=0) From: rowan.collins@gmail.com (Rowan Tommins) On 20/01/2021 20:21, Claude Pache wrote: > 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()`. This is an interesting question to explore, but I don't follow how this relates to my previous e-mail. I'm saying that having print_r, var_dump, var_export, and var_export_short (or whatever we call it) all in one language is more confusing than helpful. Regards, -- Rowan Tommins [IMSoP]