Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108408 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 1284 invoked from network); 6 Feb 2020 13:09:01 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Feb 2020 13:09:01 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 52C43180210 for ; Thu, 6 Feb 2020 03:21:37 -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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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, 6 Feb 2020 03:21:36 -0800 (PST) Received: by mail-lj1-f178.google.com with SMTP id v17so5701185ljg.4 for ; Thu, 06 Feb 2020 03:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=q1N7Cx7DthOvjYFB642Zi3OxztQneQA8b+H9N45e3WM=; b=tWsNu4CfOFNH7KE/T9pR1w9NY+k0ZLDH77lmsTFr/m+c2MIkicG5N0UBuK78Aa5nK2 iI1zYsqhREFx5T3p+HB6BtDe3QFUObBlHoJP+y1Peg6sRUbwR175K+9LQPD0lCmq+wor ltsTGUehzfkfkNU7pN1NHTjE4FfbzhM/kSg58IjrkzyLNoHjYEBCl59STgpKrWJ2WLlw hZ8T4EkFZkF1BWUpv01wvktcqkgRkWqfFUhiIAUzbtxO0mLOeNz1mLfOdWO0g42Tk5y7 t+fN85BqM5OmqYZRtcNWZM0kN0XCkg7aAZPODTG78C4MXKxf1nAuYx/nbq6A4TIXAbPe kz2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=q1N7Cx7DthOvjYFB642Zi3OxztQneQA8b+H9N45e3WM=; b=BlG9ESFVO0zzfmGbZUfN7vDfknqQk/rSnKaGldUrEwc8ivnx/4EQNgAN/pIB5lZerc 7IW+1cqAeVw/C7/uQTsPxfk5lyfU+Dqog0w2QeSsdwD502+qzU2CUJ2j4jWpdyJhEl7I FurwH7+/3CKmxLWLVHma2JhSDFJOv2RFBTUyWiuMXOfciFQ/iWOmtHbhVGeEwmFDiZ6X jcudAGFjpJU+FpSMtZbKXcXx9SkRdxIYLbTfcWaUuo+YVn56AWGK60y73vXi53VvBup7 2r7aPWLxjI4+S8Pf2S7fLY+luLEatF+JAgEmUePOLEPGMCYAEYGbVmOY+gXiy2C4pQ+6 khOQ== X-Gm-Message-State: APjAAAU93oZ2lM3V6h74l2U2OmHKB3wHS2C8hMbqUDYdLLfj4q/4mpci uSE2RYIUalwvhtDFUgWZFam141bvaeDT7M+RFV452M37wtA= X-Google-Smtp-Source: APXvYqx43l0Xn0KKUgTA8A/s2fYJDrDq6oSR9pyKwUpvag4pXdmStIS7dXdhkSftVplq2FnuHQTbBHDLinZ5il5FXTk= X-Received: by 2002:a2e:2e11:: with SMTP id u17mr1705857lju.117.1580988093202; Thu, 06 Feb 2020 03:21:33 -0800 (PST) MIME-Version: 1.0 Date: Thu, 6 Feb 2020 12:21:17 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000b08506059de67997" Subject: Changing the generated name for anon classes From: nikita.ppv@gmail.com (Nikita Popov) --000000000000b08506059de67997 Content-Type: text/plain; charset="UTF-8" Hi internals, Based on a suggestion by Nicolas Grekas, https://github.com/php/php-src/pull/5153 changes the generated name for anonymous classes to include the name of the parent class or first interface. So instead of just class@anonymous, you'll see something like EventHandler@anonymous in error messages, for example. There's a minor BC break here, for code checking for a "class@anonymous" prefix, which should be easy to rectify by checking for "@anonymous" instead. What do people think about doing this change? Regards, Nikita --000000000000b08506059de67997--