Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113076 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45640 invoked from network); 4 Feb 2021 15:21:12 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Feb 2021 15:21:12 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B70721804E2 for ; Thu, 4 Feb 2021 07:04:56 -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-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.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 ; Thu, 4 Feb 2021 07:04:53 -0800 (PST) Received: by mail-lf1-f54.google.com with SMTP id m22so4992860lfg.5 for ; Thu, 04 Feb 2021 07:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zN1rpb0Mwxp+ftFegT5jE6VAbSmBUEHW/lKoy+0YwnI=; b=MZS32aoQOa6f+t+T+P7pAUN7ofejD4aIBH3RVjPeDkkX3yxPP2Ovh438kyMfKdgMkr zGmI7fHFerEQ3aPrxtM4UDl5fSD7iVX7nixu+lEQrSiK5acvPSXYQI7+Hrep40D9Xx5u PQFS7mhGLsjllVB+hSxavZEObjs3jQCdNmRkg0HkUuknVApnM96kaQG6PB20LDrskCu/ /yZXlvFgBhZMeR6qMLTK/l+KbDQzgzyq1FTPXMezb/SrOcfxwjodiwKsyD8tEWw8bz4C t18tx9patOC5EZentWO5iNzXgE7L3LuyzLVP4xaFROVW5EMCgjXRCD10oK96AwozdSfn 6Wmg== 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=zN1rpb0Mwxp+ftFegT5jE6VAbSmBUEHW/lKoy+0YwnI=; b=XT8/RMphvPvDDEtxLxMFsB8Lry+tnpDwnadOGRM2HAWzE+ZJRI6sDqoNtg+hXodmjQ 1eDt7NEOPxceqzEHQ6BdmtjaFXiQ3Xs+17J0zaCa/i6TQ8TvJHRquF1O9Bo42oYY2OoQ tmQGz67Iv4fxvNcIA8HK4GSguTEkzSx+o9syeu7H/RiTZSE61G1Ul+/bkcC9q7QBmPGg 9UyZ7CSEXXUzVWwtNo7PBot/7WXLPIYrvByWdBV5pcUHsuEyZsTgpFScaqw5VO+QKLkq XTxcmHyIF88gBcqeoFc7YQ1DXDhjefetLCgZVail4mflgbDhU4OcTvUx7jtVW6AEPoVk tICg== X-Gm-Message-State: AOAM530a+B5gch1Xv4KtNJT1VeUKQa0+5VL+mkm9LosVV2Ds4Eb9Ne0O 0jqETGOfkVOrlzf4Oqo5ji1SNdGC8Rq5SKqMzg== X-Google-Smtp-Source: ABdhPJye7thFi87xzTjrnyJ87shsnTn2viBLCbTGMs89kWFtqmskXhs0lU+R6dYhT3eLtyagEZ0p+ighySwfa6a7NKo= X-Received: by 2002:ac2:5963:: with SMTP id h3mr4685765lfp.124.1612451089027; Thu, 04 Feb 2021 07:04:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 4 Feb 2021 16:04:37 +0100 Message-ID: To: tyson andre Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="00000000000061178705ba8406f5" Subject: Re: [PHP-DEV] Re: [RFC] var_representation() : readable alternative to var_export() From: guilliam.xavier@gmail.com (Guilliam Xavier) --00000000000061178705ba8406f5 Content-Type: text/plain; charset="UTF-8" On Thu, Feb 4, 2021 at 3:36 PM tyson andre wrote: > Hi internals, > > > I've created https://wiki.php.net/rfc/readable_var_representation based > on > > my original proposal in https://externals.io/message/112924 > > > > [...] > > A reminder that voting on the var_representation RFC starts in a day. > This RFC proposes adding a new function `var_representation(mixed $value, > int $flags=0): string` with multiple improvements on `var_export()`. > > Any other feedback? > Hi, I think the "though strings with embedded newlines will still cause newlines in the output" part is obsolete (since `\r` and `\n` are escaped now). Apart from that, since var_export (and var_dump) can't really be "fixed" for BC reasons, I'm +1 for the new function. Thanks -- Guilliam Xavier --00000000000061178705ba8406f5--