Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112952 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70191 invoked from network); 21 Jan 2021 09:23:03 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jan 2021 09:23:03 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 18EC31804E4 for ; Thu, 21 Jan 2021 01:03:14 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, MISSING_HEADERS,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-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 ; Thu, 21 Jan 2021 01:03:13 -0800 (PST) Received: by mail-wm1-f51.google.com with SMTP id o10so4564601wmc.1 for ; Thu, 21 Jan 2021 01:03:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:cc:from:message-id; bh=wXjES1wRkUBm91id65OW/RJ845UVHct8Hvu0hfxw8A8=; b=rtUxdPry+Dyfp1dKpKPobyXPXLcmI3jQeGs5J62FV9PdzA9aOmsn/oSWU/64AFrJfi wOzFnY/L0EKKD0vv2mX4X1KsceaAHIqXBuX9FW+hqxBagw3QYHLBmj+dT30iuDJJWiGD o0pn+9QAHXqovMn9H3qFxumClgizIN3Up/nNFDD+s+hGU7roOI3/m6OKGArElVatPTdO c81+aO5dg0aTwMgil99Y7lId2xmeRcx/9GzkHDu4tMFv+3F9ICwi2w2XxbwTZ96Hv3Ey vT6l3ohEuqV31pfbdUVif02HnHnVQodrY+CljeXAwUVR3dpED/bo9mrGgiDXq/De21zb 1aAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:cc:from:message-id; bh=wXjES1wRkUBm91id65OW/RJ845UVHct8Hvu0hfxw8A8=; b=K1rYVxtAU3N+Sf5Gfc2wMtQyc4zkzCPgPFrso8g8k6K7DAIX0otxjG1b32rLFSVXAD 9RB90/Nyzt8f8Mi7gZIvDSHXybe0eWE1MJ3sLnivvv/FC0MeKkYj8oCz/cr6kAMhwj6O fGUFRhJfoAUFS5kpvgYpgaRQ/fLPDSkzvPuFH80ExcJ4ad1dag2por44S/DBcS98Oaks NEfnu83cMAyoKxvLZ1YxnMCQ/KsIkil6HG2Q64kJfjS7w/m/1nodGVjoHVe5tZF56b3R 2yghyuWvVgZXUByw42nN167RiootfVscdTWL3ikg9XPl9kU9eYSBKGYPXxpZaoR70ftP SRAg== X-Gm-Message-State: AOAM530e58SEregI8kh1u+tPMD/iUnXgkqh89zC0yyZ/uD8F6kAks5UX PiBftexDyrc62HKURujAWRc2g4f6YKE= X-Google-Smtp-Source: ABdhPJyPo44LsEbk/YaGfPDFTo/MN2J3QYnhkiT3jjlrtnqKHJUqQNPEANuCFJ3zH8ms4/OlQd1k3A== X-Received: by 2002:a05:600c:154f:: with SMTP id f15mr8080502wmg.46.1611219788426; Thu, 21 Jan 2021 01:03:08 -0800 (PST) Received: from [192.168.0.27] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.gmail.com with ESMTPSA id t1sm8086848wro.27.2021.01.21.01.03.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Jan 2021 01:03:07 -0800 (PST) Date: Thu, 21 Jan 2021 09:03:05 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: <22e7ebcf-3f98-ff74-8d84-d2b50cda44b7@gmail.com> <1DF0F205-30A4-4FA3-8A58-703BAC6AD732@gmail.com> <18afe2ed-0802-8f76-b094-64d5ff8cf37f@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----J5OEMJ3CONUOXDEW3P92L185W3PHVL" Content-Transfer-Encoding: 7bit CC: PHP internals Message-ID: <507F150C-A48D-4854-BC0B-4FE0B8822260@gmail.com> Subject: Re: [PHP-DEV] Proposal: short_var_export($value, bool $return=false, int $flags=0) From: rowan.collins@gmail.com (Rowan Tommins) ------J5OEMJ3CONUOXDEW3P92L185W3PHVL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 20 January 2021 23:19:21 GMT, Sara Golemon wrote: >IMO print_r/var_dump should be kept out of this discussion=2E Those are >human >readable outputs for human consumption=2E var_export() is about a >machine >readable output for recreating initial state within a runtime=2E The >requirements presented are wholly different=2E In that case, why are we spending so much time discussing how to make it l= ook nicer for human consumption? Of the changes proposed, I think only the leading backslash on class names= actually makes a difference to machine readability, and that could probabl= y just be changed and documented as fixing the existing functionality=2E What are the requirements of var_dump that *couldn't* be merged with var_e= xport? Regards, --=20 Rowan Tommins [IMSoP] ------J5OEMJ3CONUOXDEW3P92L185W3PHVL--