Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125630 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 010461A00BD for ; Thu, 19 Sep 2024 12:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726748480; bh=A82reAvt5hRfSSa8tRwcYDysmKHmf36GOrN28pnCbwA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WQSFoD/UU5HTEWVHrDwYX36pNUZv3/uOsrqnu/MCsG+ZWMhPkZ6R82/cH5OFoclCv OOLw4m9PALsIqC/AIar81b2gTX87eN39mAochWG3SvMIaYbFOGydaposU8KcUmAlLo ebB6WmSlq9QSKSOxh9W6rZkhHnx5zMFWU1IuWoT+XwwxSkmsOEfPoc4qLTMm9HiOZ1 b8YfDZvSnA9wOuXR+3u0pKDLlETnVvIoRbqtx66gcpjyKzligOEwHBoDtoTulPyrW/ d1c4Kg1C6v8YttcARfw1H7Hng5QlzTxuAiIPOhORIam61kE8xqxLGUGpadchy/zj5A YcsD8lVKPbfVQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0437618006A for ; Thu, 19 Sep 2024 12:21:20 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Thu, 19 Sep 2024 12:21:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1726748349; bh=QL0wYyX3pk/1pGVQ6n7gO7jYv7SJt/03113d/IByXBo=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=BSAcTU7A9kxGTnWkMPI5MJlZPYf74D/XZ4Jr1avfRR5uOnyV2JVAkTzQgle5jrB8f HH7k2vsdM3VYEDjb2iyTtCM/C+av92hAkZCTO9jESilhR6qa1ra1CvGGOfn52lxdEN lTU3iktREOuxdDzd2G9nWbP7eGJmsyNx+z5ifSVXBiZ0sbwUb3pHwis0se7d3qJRtK toU9R+ce8tEgSCjOg1mDUj27BiGMc3KT6Q02y8XSI4xkE3uR7zqt9E9PTc3ObcuhiI UUNWqfKPcsA/ca3edHTa5Ic4DgVU29qV8m5r6/gAknskgpigFW4+8fGYM066Uv43hd FPUVPCxNm9pJw== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 19 Sep 2024 14:19:09 +0200 To: John Coggeshall Cc: Philip Hofstetter , PHP internals Subject: Re: [PHP-DEV] RFC: Deprecate json_encode() on classes marked as non-serializable In-Reply-To: <98553A91-FD3F-4E1B-91D9-D8B00CAD5FC5@getmailspring.com> References: <98553A91-FD3F-4E1B-91D9-D8B00CAD5FC5@getmailspring.com> Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2024-09-05 18:03, schrieb John Coggeshall: > I would suggest we take a step back from this and look at it with a bit > more of a wider lens. It seems to me that this would be a good place to > have an attribute (e.g. #[NotSerializable] ) that could be defined for > any class (with ZEND_ACC_NOT_SERIALIZABLE being automatically given > this attribute)? It just seems to be a more holistic approach that > makes sense, rather than basing it on internal engine stuff and/or > limiting it to internal objects. FWIW There already is such an RFC: https://wiki.php.net/rfc/not_serializable Discussion thread is here: https://externals.io/message/121969#121969 Best regards Tim Düsterhus