Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109472 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67227 invoked from network); 30 Mar 2020 22:15:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Mar 2020 22:15:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A06EB1804D3 for ; Mon, 30 Mar 2020 13:41:41 -0700 (PDT) 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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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, 30 Mar 2020 13:41:38 -0700 (PDT) Received: by mail-oi1-f176.google.com with SMTP id m14so17012638oic.0 for ; Mon, 30 Mar 2020 13:41:38 -0700 (PDT) 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=Fk4VptBYrF1Nc+Jc9umlgN7OzAWbbpSQrAsBF3Tx89M=; b=XQGwnudQtviTkSszow45jVDD+qxpl7SoY5BoBm+EdK5hyPvWAM5JCkn5fnddyKZ4wT Rpn6VzQI0LGGTwaQFbfW+4FUUu0k2KfxKgLiynnIqdJ6TCXq5lWg9cBGGOqMuPW2DzLj c1wn5lclyKH7KlxctWqciAY3MOKByjlLxAWy+fdc1zqVqPDkwag5HflAGY6m/Zo+Rdra OKXIw3z7cfSbTEfsMqeg0+G0VVCdyzjifa47mNlORdhIj4boXqy3xWONQpDfVGngkCTa Dz1aww+INswunOydy/MXgRVL8MQbQinwi8ECXdtLiTF9Z6vS0LJUf+YnBWq3tJpPSzTD R8+g== 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=Fk4VptBYrF1Nc+Jc9umlgN7OzAWbbpSQrAsBF3Tx89M=; b=EU829CVUPfjJu1S/kMbxDzcAoiyl3BhgyZXphxJetz9mcN1/i2xBEWsRCRffgPxeNZ g11LdS7Db2QYv7Nou9zBCdeZ2xXkriEgjkY7+orW6itdbf6YGYvQuwKu41KRgMjQjwG8 TC54golRy2QeYl1amK1/ddlRKC65aPwpWZ9xdIb9awVdZJTqwAvBzI31+QPyk2Zw/vTo luv/znTMGkabeZHZMcOBmQA0xkxsLHz2aPbNGdnnDiwMMienfC7f3G7NIoRQwWlInMPi rcJ7LMteCAAOLXt8Uyx2xAT/oa87igaYnJFUHVc3JIZcdYOyAQPMKWHWKTXWcBZwR01U NGCw== X-Gm-Message-State: ANhLgQ1NHRKXLGTtrjtgwRdpKMmDhv+EB93JfCPJ7XwiZSacnevgoQ/N 1eATHNWi+ubIIdu9unQ4rDI943aiYXwdl86XQY8= X-Google-Smtp-Source: ADFU+vsbAg70P8rFuvrbpZXNGRI1u9YQMLKZR2hCl5fBsfXSfzK/cnAsryCCXiNjfwKgOA+foTacVq4EbssNOXkY838= X-Received: by 2002:aca:f254:: with SMTP id q81mr888433oih.12.1585600893584; Mon, 30 Mar 2020 13:41:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 30 Mar 2020 20:40:57 +0000 Message-ID: To: Derick Rethans Cc: Sherif Ramadan , Sara Golemon , Benjamin Morel , PHP Internals Content-Type: multipart/alternative; boundary="000000000000048aa505a2187ad2" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Change var_export() array syntax to use short hand arrays From: morganbreden@gmail.com (Morgan Breden) --000000000000048aa505a2187ad2 Content-Type: text/plain; charset="UTF-8" > I have already told you that the output of this function was never meant > for human consumption. > It was originally added to aid in caching of larger complicated data > structure through the likes of apc's opcode cache. It is sometimes used for human consumption now, though. For example, my team often uses it to generate database seeders from staging environments. With respect, I don't think "I didn't intend this to be used in the way it is now used" is a compelling argument against improving something, rather it's an argument *for* improvement in my eyes. Other arguments here not withstanding. On Mon, Mar 30, 2020 at 5:45 PM Derick Rethans wrote: > On Mon, 30 Mar 2020, Sherif Ramadan wrote: > > > Given that code is meant for human consumption > > I have already told you that the output of this function was never meant > for human consumption. > > It was originally added to aid in caching of larger complicated data > structure through the likes of apc's opcode cache. > > cheers, > Derick > > -- > PHP 7.4 Release Manager > Host of PHP Internals News: https://phpinternals.news > Like Xdebug? Consider supporting me: https://xdebug.org/support > https://derickrethans.nl | https://xdebug.org | https://dram.io > twitter: @derickr and @xdebug > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000000000000048aa505a2187ad2--