Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128657 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 lists.php.net (Postfix) with ESMTPS id C46F91A00BC for ; Mon, 8 Sep 2025 15:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1757345458; bh=epLp5xGspq1vlBBraDZMd9st55jWmuJ3UXPeIcr4Vy0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WFjuUM9qw8GPKpbgSQrhBQ7uy4r9V9nrveVjhDMRwwWmzWvQp6RbQA1P9+hsyuGkt 6nVn+c8bxPwG/+mHJ5cwZCdSOfCc3df0IKRv2YNF+L6B1Y2OYQ+w1bIj4116PpefAM UWSdZ3JAOGpvzuFH2qR1p/Nk5nsGEDzlnrpMeg1pjdHOpvKpXOJV2z5ZnTPR0//TA7 wjlxf4ueaCknuHdv7DZeXOxSs2MZg5IWYsfl1jcEddn1vjRnrZU6z55kvxYvP36DvK 0zCHAZ7+7s3euw5RvGmurbSK6gst+dMsehZMK+StQDMjMGe88vz5dgaSsaXMvZuJna QxwMI/GnPJMEA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EB5AA1801D8 for ; Mon, 8 Sep 2025 15:30:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_40,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (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 ; Mon, 8 Sep 2025 15:30:57 +0000 (UTC) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-30cce8c3afaso3223630fac.1 for ; Mon, 08 Sep 2025 08:32:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757345544; x=1757950344; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=epLp5xGspq1vlBBraDZMd9st55jWmuJ3UXPeIcr4Vy0=; b=ekuOcJzl1vNKhTRtVxqOTYzw9U+Vj0/EcLVysh6NP5Iob2qCn41POvrlerubIh+v3e 1DBbYw9hFheMlFvRf7/U7ucth4pd/lLQylaIm0gx33I39YFkRbkm5TJaaDYlJ1PvTcQN 2tD5vdWQDsluZJR3tBB2g3iY+Mzz62AWqigBad9vYNK2hZ5JHqTwu+JFplMK05mjsqKC 4EOwI675zYS5bXLEQZCsUUpHRkO+6Z0GLoXZRCTlLxV0T9hVVhPoxzOYXajTcm1tIOSY H35YlZpDc7hqqD+1/b5mmpcmboJXkiOcSviNE0AYa2TGhdkZhsgoapGSD7QXVzLquRI2 nJ9w== X-Forwarded-Encrypted: i=1; AJvYcCXTzFXA+2gDwtWqTXTLK5zEEfi33Uqf/yhLvAQhfdH85PYojsAlr12svL2UhdqHCCAfP4x4PFxiJjs=@lists.php.net X-Gm-Message-State: AOJu0YxWg027J6lmbu5dwWyw/5EV9i8vaU3ISYOG3gSVyskKK5W1ttNW Mc8ERkRrEpwsLX3s1C+4jhNiZ1lIPpt7YW8QJfRMnapWsayMlaOdCml61FDu2MTYYOfmLCzyFCi xiQQmA99rfa4AjCYojua+KZKL2qnZ9P8= X-Gm-Gg: ASbGncvfgr/BFGiDWSE7X6jI73Lwt5NItoUsgHQBEr5juZWUmgaZzr+lsyYOEF60Y7f jWVlmx6i21bRAUVdaOrUVBh/84LL9vjDtQXa95j9D7q7xZ26ww15M7jUVBYInw6HCMxAlkaXSzX 5D59RXNrUWW1c23TKv0YrNSNWLSs2VOjyjz0xQNh7pxFRzynIU3I5PYrpEipMsCqTNOLo35BD/s ohi8broMBfcryMMFw== X-Google-Smtp-Source: AGHT+IFuU8qcqO/mNzTTSyIyAfuaM4jrTeCOWqyAOjy+ahN6+e0/qI2l3N1ca4+S7plsuqBfK//KQImExxBwOrPADt0= X-Received: by 2002:a05:6871:6d0e:b0:30b:a20a:8799 with SMTP id 586e51a60fabf-322644fb67emr4239817fac.27.1757345544256; Mon, 08 Sep 2025 08:32:24 -0700 (PDT) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 8 Sep 2025 17:32:13 +0200 X-Gm-Features: Ac12FXza0G4oXa1_bBerTOztTkD3iskDAziwkwYi2c_lN3eGwjj-JhH1nxv3MBY Message-ID: Subject: Re: [PHP-DEV] [RFC] Soft-Deprecate __sleep() and __wakeup() To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: Nicolas Grekas , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000e9c172063e4be47e" From: bukka@php.net (Jakub Zelenka) --000000000000e9c172063e4be47e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Mon, Sep 8, 2025 at 4:48=E2=80=AFPM Tim D=C3=BCsterhus wrote: > Hi > > Am 2025-09-05 17:53, schrieb Nicolas Grekas: > > Hello internals, > > > > Following the discussion that started at > > https://externals.io/message/128226#128456 I wrote this RFC to > > formalize > > our consensus on the topic. > > > > TL;DR, this is about converting the deprecation of __sleep and __wakeup > > to > > a documentation-based soft deprecation: > > https://wiki.php.net/rfc/soft-deprecate-sleep-wakeup > > Thank you for the RFC. I have some comments: > > 1. > > I disagree with the phrasing that the RFC passed with a =E2=80=9Cnarrow m= argin=E2=80=9D. > While it is technically true, that this is the narrowest margin for > accepting an RFC, the necessary margins are already biased in favor of > not accepting an RFC. That the RFC was accepted means that a significant > majority of voters were in favor of the deprecation. I did not vote, > since I did not have sufficient time to form an opinion on the RFC, but > given the knowledge I've gained as part of the discussion I would now > vote in favor of the RFC. > > I think the point here was that it was close and the RFC itself was misleading and omitted some important points that would like change the final result. > 5. > > The serialization mechanism is also a security sensitive part of the > language, the fewer moving parts there are, the better. Security is part > of the motivation for me. > > Could you be more specific here? We do not consider issues (crashes and similar) resulting from unserializing of the serialized string as security issues because it must not come from the untrusted source (see https://www.php.net/manual/en/function.unserialize.php ). I don't remember any security issue in serialize / unserialize since this rule was set. Kind Regards Jakub --000000000000e9c172063e4be47e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Mon, Sep 8, 2025 at 4:48= =E2=80=AFPM Tim D=C3=BCsterhus <tim@= bastelstu.be> wrote:
Hi

Am 2025-09-05 17:53, schrieb Nicolas Grekas:
> Hello internals,
>
> Following the discussion that started at
> https://externals.io/message/128226#128456 I wrot= e this RFC to
> formalize
> our consensus on the topic.
>
> TL;DR, this is about converting the deprecation of __sleep and __wakeu= p
> to
> a documentation-based soft deprecation:
> https://wiki.php.net/rfc/soft-deprecate-s= leep-wakeup

Thank you for the RFC. I have some comments:

1.

I disagree with the phrasing that the RFC passed with a =E2=80=9Cnarrow mar= gin=E2=80=9D.
While it is technically true, that this is the narrowest margin for
accepting an RFC, the necessary margins are already biased in favor of
not accepting an RFC. That the RFC was accepted means that a significant majority of voters were in favor of the deprecation. I did not vote,
since I did not have sufficient time to form an opinion on the RFC, but given the knowledge I've gained as part of the discussion I would now <= br> vote in favor of the RFC.


I think the point here was that it was= close and the RFC itself was misleading and omitted some important points = that would like change the final result.
=C2=A0
5.

The serialization mechanism is also a security sensitive part of the
language, the fewer moving parts there are, the better. Security is part of the motivation for me.


Could you be more specific here? We do= not consider issues (crashes and similar) resulting from unserializing of = the serialized string as security issues because it must not come from the = untrusted source (see https://www.php.net/manual/en/function.unserialize.php ).= I don't remember any security issue in serialize / unserialize since t= his rule was set.

Kind Regards

Jakub
--000000000000e9c172063e4be47e--