Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122139 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63092 invoked from network); 9 Jan 2024 08:08:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 9 Jan 2024 08:08:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1704787736; bh=zEKRoPWoROxfPg3PhlhviMsWs4WjIC1qvb5CWKdSBv0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jPFccqn6ZacsriCUXd+54h6yJCgR4IPKSmQbXMdENslU4Rc9uIMaCbPKFQKtJTHyn q83fzWf9MTShtVaEmVO1Q0oQdVoq1Qbdy5ONajAOpae3EMqkdpnPKrjSMOgEqeY0K3 a4cDXPdjTirWEs5mSRjaoIBgRB9e05gNr53j0FLySl3RYW/w9qId8GRTIA6//51Zoc J0mel4QorxE63VcXM0vPg9kVy/dEZLd63+ifBW2h2IsSa8pXyQ2S4LhVbTMIYTyNW+ 19BggKQdHXxw6Yj3IiatUMtJVwX6ZFXz35pInbqTxjavhwmyfBobiNpE7I7rUNfnCS lHNVpuBfptWFw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5FD0B180038 for ; Tue, 9 Jan 2024 00:08:56 -0800 (PST) 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.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE, 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-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 ; Tue, 9 Jan 2024 00:08:55 -0800 (PST) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-55590da560dso3099130a12.0 for ; Tue, 09 Jan 2024 00:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704787700; x=1705392500; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zEKRoPWoROxfPg3PhlhviMsWs4WjIC1qvb5CWKdSBv0=; b=Rk7UlqHaznf8SwptMgy9YiyuCJ6fMCCSEE3keyCW83H21lnAAG69oei55FJKL4anx4 h1oENq5yBHW6QB+GwXkWuObkjxhnY0eUe24ZupGdFanlp8NjkV6ccu0E47FuBIB9kov2 HUQsbNVbp8au6XBq57BpdwyzcoTRFN8e6CSO8Jrth4iPj4a+fk1eZha48RvcJC5fKp0v 90D8khPAriVQRjB3Mpjaymu4KB06Fq6a9+TAxubmFHZfj2cfvc/dlBOnkcXmh8unHPs8 r13oaoiV4PRfm9sGB1P4umxFMns3JAQOJTMqBDeUIEbx9ElzALs8xgw8M5VeZ8twHpgM 5qeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704787700; x=1705392500; 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=zEKRoPWoROxfPg3PhlhviMsWs4WjIC1qvb5CWKdSBv0=; b=jtuPU9NzKw3sgzP8hvAdwatvkbPkNBI313ud2qAwkCvfzVWNJFZRYu8SqPZQ+/LoRJ Uztv7lYHXJinovw0mjjdN/IwgQviOMT5xQx3n2oVd4PLU5UoY89mGyAhVSqgxPUiepu2 jFK32NL8DnRYo7iJp71mq0YMsElXxj5N93kFSsMnNFVk6nimZTrySfC0RN87kLt8XUbg CAKIKOctBTlZY8bY5nfX3MU7/iaW78u3cNtbEiPFUfff76AHl494UeCu/k2YUnLHI0Wk o2CcoI6bV/bDwcUOlslX7fqaqCAM0S5hwxwiEqCEuUPoAdomHrSM7oMufL06JZYplApC JJ1w== X-Gm-Message-State: AOJu0Yw217JajQ8iaOlKcx+6NBw3gTsksf4s7nYk1j2oo5V67DrpSdEP UMfJGWOaQNTOp5480KAYrYnCoNcksQG9ee/Gdj71xoLj X-Google-Smtp-Source: AGHT+IEMUkZlC3Sha0AkYy2Ygq01mnDrv0HHihk3mq/zMDnmUBe2oHoLFkEksn+s8gb3Jd9ZuFeuxfp5Oz1GOQhrlIo= X-Received: by 2002:aa7:c408:0:b0:557:c179:6d08 with SMTP id j8-20020aa7c408000000b00557c1796d08mr1005659edq.79.1704787699797; Tue, 09 Jan 2024 00:08:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 9 Jan 2024 09:08:08 +0100 Message-ID: To: Kamil Tekiela Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000004394a9060e7ed13f" Subject: Re: [PHP-DEV] [RFC] [Vote] Resource to object conversion From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000004394a9060e7ed13f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Kamil, Good question... After the workaround, I think there's less reason to do the conversion in the next major version indeed. To be honest, I am not able to recall any use-case where a real BC break could happen. I mean, there is a very tiny one where resources can be casted to integers, while objects by default cannot be, but this problem is also easily solvable (and Nikita had to do it for CurlHandle in the past), so I don't have any other idea. In my opinion, the main argument for converting stream resources to objects in a major version is the "marketing value" of this achievement and possibl= y the unintended side-effects/edge cases which we don't yet foresee. Regards, M=C3=A1t=C3=A9 --0000000000004394a9060e7ed13f--