Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124992 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 303031A00BD for ; Fri, 16 Aug 2024 19:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723837674; bh=aRktWxWNKNr82oLKqII7whZCRJb7RuxVM4fqRlnOiy4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Xs+Ot270jhhf6A0OFnh+NoIwK+M8XFVAqcF5Zp5wH4FMYvLBV2LmHBNj8cjf/2UAq tDZxDzuZLcJmJbdx2Rfcjk3pya3XZm7H0/k1QpCmYmyR7g1X80SvEjt6CvVSxOZ0v/ aQ3kxiwtjDHFuYmvcByVfKKKf/uR7vtfKG7llah8mm8XtPtXUtwj7DohIyZcDmsCe+ WGWQySJ4xit0eTfJphHuY+0o73E8n5QabIxffMk68Ogntb5V3Z89CXELUOPHkfWKCo g1UYGQ8vky/mU1x4KX0cS230hcx/n6mUlvRtrNvCqE0bFZ1e9vs8jwkPDT3JrDTPGt aQw57H9lj8R+w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 65C7B1801E0 for ; Fri, 16 Aug 2024 19:47:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 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 X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 16 Aug 2024 19:47:49 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4280ca0791bso17343535e9.1 for ; Fri, 16 Aug 2024 12:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1723837561; x=1724442361; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=mMVrJjT97SqJLQlBTk2yxSuxfM+mxQ0OvJ+WiI4zrdo=; b=xfvU4FIVJMkqfDoYj48H1/AMUyK79zCKuZvLVFt2EFnIpIXMhZaZtkox9/y5D28hoI Mr7UIseKPsWqkPlbkzFQKmyAJIcdat/AhLWVvhPKeRT3rgqLYDieFtgz62rXR4jweAVk RlvHgt63rwsTPJjYEMysOvJIhEiUpsRnyhKFzDPfYagiSK7oaeqJ6pFTJyFd+yghCqAO aNttBJC1fYw0kBo3wmH1w9DdrUnsgwoRH1NBogTi5dtPmKBXNEMapPqEpEt5qHKSeCCD r/YnJTgHGGPErKeGtmUhJbhmsDdASbNQzPFhrqU3QQWhy5IQLem8RCsRstVj7bQiVAIa y1bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723837561; x=1724442361; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mMVrJjT97SqJLQlBTk2yxSuxfM+mxQ0OvJ+WiI4zrdo=; b=YZIOuyk9X3Mi6pSTPxxgxYxNGJvZncBzqqVktNexr6nlf1Zn3xZE3dYFoGx24+86c6 +9GjL8qr1o2gNqGp6u2/C88a3zWP8fzKFpo01ob886MtF8/5cVtJ978ICt0e7lu5elNw iSroLQRmGweY6D46fuRwDBolkKVfBWpfkczxHN0/uyohYzul9ao2fNjhg1M4A66yy6OJ u0AhH1MC0RRVzQ9A+igiEUeezAXKjuxzgUonfbq+Hu2z5fdYXUVJJNLTsJvpJFyEtrnw 7eCy7YmBU2eb2FJPWuwFm3atmPXBE7L+HP41iwtO1IMeYD3EUFc+2QYW0L+OHGjZhwLL ICDg== X-Gm-Message-State: AOJu0YyyZ86pDS7CsLgdYw2+1DJG/nKweLlLTNT/B5a5UcKDpLVTkNZO KW0TyNuwIryab7QBB3Jrwh+8oFb3IB6P1VJB1Dub77+eECuzCNSpESLebFc+RJNYn/gcGUjqwEf IlCw= X-Google-Smtp-Source: AGHT+IFt0ecPc0BVbz8wVdBrLoh4cESNFBTj2IqdGl7qjh4QadXTXP+DLRtBdEfob8fjLoIiy7YpVQ== X-Received: by 2002:a05:600c:3553:b0:426:5fbc:f319 with SMTP id 5b1f17b1804b1-429ed7f92eamr23724645e9.33.1723837561257; Fri, 16 Aug 2024 12:46:01 -0700 (PDT) Received: from ?IPV6:2a01:4b00:bf09:5101:1441:9f04:9e5b:d7cb? ([2a01:4b00:bf09:5101:1441:9f04:9e5b:d7cb]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-429ed648f00sm30390675e9.7.2024.08.16.12.46.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Aug 2024 12:46:00 -0700 (PDT) Message-ID: <501db7d2-55e1-4b20-bb6e-1e079aa4939b@scriptfusion.com> Date: Fri, 16 Aug 2024 20:46:00 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] String enums & __toString() To: internals@lists.php.net References: <2A3FFD56-789F-4ECF-8E9F-A84804E484D1@getmailspring.com> Content-Language: en-GB In-Reply-To: <2A3FFD56-789F-4ECF-8E9F-A84804E484D1@getmailspring.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: bilge@scriptfusion.com (Bilge) On 16/08/2024 20:39, John Coggeshall wrote: > Hey all, > > I poked around a bit in the Enum RFCs and I could find (maybe I > missed) what's up with this: Didja really? https://wiki.php.net/rfc/auto-implement_stringable_for_string_backed_enums