Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112993 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83296 invoked from network); 25 Jan 2021 21:12:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Jan 2021 21:12:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 89E111804CF for ; Mon, 25 Jan 2021 12:54:03 -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-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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, 25 Jan 2021 12:54:02 -0800 (PST) Received: by mail-wm1-f43.google.com with SMTP id m2so671319wmm.1 for ; Mon, 25 Jan 2021 12:54:02 -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=F2JdEkXGqiVjxory4RTruN7ivBVMb+7g+r2vMr8qEFg=; b=ET5YYaeAZx0EwJ8MB1YwYCZNdVoXH6vMAEKkp3lYuPQL7Fs1OYPdbFgvaFlJRSYb8p gFHwsSRn+NCScBZ9X87/Nckl2LFDkUPjN8Mc8CXzcGzlHcwLdex9RjBDW3y3coFm5Thd lJuZtFUlP3fQrD+0ARGrXFYbPCl49W7JtqKkPuiaiaPXl0un+NYgZ4jbqG0ELr23x8C3 6Wah2in0rs5CyWGcJflpQBXHUrIGgtyUev+i9jse5+xgoJW6AATVKW2jj4iByw77J94O ANttWcjdKeKWEKuR+5UZPeuJ+8Jq1rScxiIkzK1SvFUxdlIBC19XdZBPhlZ4ZzoIyrtJ MK3Q== 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=F2JdEkXGqiVjxory4RTruN7ivBVMb+7g+r2vMr8qEFg=; b=G+7NELSs4Ci2VZFvwH6JMjrP37QuB8N8UKa7+9wkc+83FBXPKo5hSvfKV0DdkrLnXm 8XOPxTYI8R4pxqCkPHRuWAI1nbpfJocLqumzH49jVLoFlaPsaZYdrIgPSG2msNKJjuXK 2U0wE9ppr0YEzmU7n/HS0kryDaZlwsVdjA6S2C9mvudTim5jrb/svRvGHzmuF7Jo7R/c Pmaq8IKVToIaI972Bdz/JlDktXFwUMvl9NmAbLQGFBPwSY6zZcnjUBJ3B+Z9Q2Tl1ArC SG/tV9Dh5TLXpXwRw394TRlzIjFcWUqE8/+0c2LcSxLeSyQ8QUs6aEWqUQ/wmjVAG/w/ oqQA== X-Gm-Message-State: AOAM533Xt4Q9O0CkpMbZyTeUlnrVagBC7/kLQKbn0U8tnTxB9K7OnS5O ZT4vEygNXJ1tV/nvN7NsemSaccZXr9c= X-Google-Smtp-Source: ABdhPJzWSFe8YNz0Q2e/L4ojbvxg5YDc1iMKYD37mRO+SUKzvX3P09GOoylG624UNA7AZfQyFrKf7g== X-Received: by 2002:a1c:9cd8:: with SMTP id f207mr1740594wme.155.1611608041382; Mon, 25 Jan 2021 12:54:01 -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 z14sm23949594wrm.5.2021.01.25.12.53.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jan 2021 12:53:59 -0800 (PST) To: "internals@lists.php.net" References: <5ae166a8-378e-b3bc-056a-8ccf4f3a1ddd@gmail.com> <8e5d376c-0d7d-bf1b-bcca-3f8c4c737a22@gmail.com> Message-ID: <7144bb79-50ff-893b-2987-cfc4b1531053@gmail.com> Date: Mon, 25 Jan 2021 20:53:56 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] [RFC] var_representation() : readable alternative to var_export() From: rowan.collins@gmail.com (Rowan Tommins) On 25/01/2021 14:40, tyson andre wrote: > I'm concerned PHP may indefinitely keep the default behavior of `array (`, `NULL`, etc. in var_export. I agree that that's likely, but I don't find it concerning, unless "array()" is deprecated or "null" becomes case sensitive. > You have proposed no mechanism other than string escaping by which var_dump could or should be improved. Indeed, because out of all the improvements proposed in this thread, that's the only one I consider to be anything more than picking a new colour for the bikeshed. It is also the one which I suspect would have least impact if it was simply added to both var_dump() and var_export(), because the intersection of "relying on exact output" and "processing strings containing control characters" is probably a rather small one, precisely because the current output doesn't represent them well. Regards, -- Rowan Tommins [IMSoP]