Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122256 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79083 invoked from network); 25 Jan 2024 14:14:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Jan 2024 14:14:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1706192095; bh=d0QeKEYAnoRxm8LBw0xYo1aENSwwoycYfC+SJhMBKYc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Y3asTJFEJmkV0kPU4AzmyNJpr/F+Xb+JpvZxf/zfWUaBhlBKPqHqnFkaVOIaPH8wb +EkwRcYlBlaobwlWof2BgW2C4RPjP2YYj/gj8zjfbf0vh0N2ro5/ah7IxHSYWv+Vjq uNvZxkdppd6pXXne32RfhSMJ2gK3n3IXi8Uvn57dnfBvWOjxehMbF+QMk8RlxqfP0O lC3RjOPmg9Nxb4FLJnvvQx5bMI7GZNQW9KhT8JjJXdCDz1JaMI6H/fN/GmtGj6BeXc 8PJdqQtrp6rh8Lk76Bpsr/yLMedRCcI2Pj0IMphRoDFZbCxU3ogI0p1x15Kn+Tl7Gu 4HtILxy/l5O5w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 54F0618005A for ; Thu, 25 Jan 2024 06:14:54 -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=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (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, 25 Jan 2024 06:14:53 -0800 (PST) Received: by mail-oi1-f179.google.com with SMTP id 5614622812f47-3bd9030d68fso4047562b6e.3 for ; Thu, 25 Jan 2024 06:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706192048; x=1706796848; 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=d0QeKEYAnoRxm8LBw0xYo1aENSwwoycYfC+SJhMBKYc=; b=J6Pc9BiEtd8/247bzENbl7UfMjdkSbseDBjqOhG3RLW8W0TFYi1xxLbEpXOSBAX2ni bT6mAAc0JDvkQ0TP7ZDlNCAhJq3TENAoVmyL78Qc1t0Ngx8mFq4TmQz43ozDZS1Kyhtj roc5D5b3GccDvuL6cQnpdNFffzn7SSR/B6wqOSIM3HtITyGItiKg6tGUZYHa+tB6VQXc jIvamGzyrmg2DN9yDVXuZ/jDO6Us1dfkrjxpp+e7CGbY/0VPW8bDHkwp6Gz727K7Uake J1GEC5+7144f6nLUWNmX7vl70SOdte5ACUimuLB7yHCPgW6YOz4dtxqVHjQv3BODWXhX 285g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706192048; x=1706796848; 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=d0QeKEYAnoRxm8LBw0xYo1aENSwwoycYfC+SJhMBKYc=; b=pqrbrbf53BIwBmyLOMBfrkQv0mRlxZQ8a00HyuIXP2vlfdBl5ElHmC/kufk58/eOBs Jyyt94IWHXft3jdcxbihdF2BbN4+fR16E5T0YucqCas2xuD4Ko3xk16KM+g2MGNy5XLp LOjB9MUbqjzlCp+4A5odh7ZeS1JFs+nLOsY8jgmJ5TToZNzFSQvGmU+D8RLxZQpXd6WE hvdQtLV8ZcO2nTF6St2bDaz/2hWOoynJTZElBKPvvE4wiNo0HN0jRXUoJPXX+ND5R/3p QfBissxIHwm9kq3KDO5vQpiLfoAa/rwVLgFVZ08vRAqsq39J1PzR9+W0lansViuygqvc yodw== X-Gm-Message-State: AOJu0YzNTCl+AVzKFyAIW48oYaQCELESo5RFbmx9qboEMriJPQ2c1qD/ QZWDOxAKGtqPi8VcdKtrFz/I+RIFOjJrx66rmhNKDrGgsMWaoobn+VIh+OZkntbEV0G6nTjcIjd ilBoCPzlMTPZCrXVUXX8y4S3ZadPRXzXwzXkrw6tk X-Google-Smtp-Source: AGHT+IFAZxxYGacdv2UryOKYhF/5XyFJapWXuu0SXwKDUSzj8XkTSMuI3XYd4I2xy7UnUARI7jF6xreUDLsWb8uriGo= X-Received: by 2002:aca:1017:0:b0:3bd:a3ba:d81f with SMTP id 23-20020aca1017000000b003bda3bad81fmr910808oiq.64.1706192048254; Thu, 25 Jan 2024 06:14:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 25 Jan 2024 15:13:54 +0100 Message-ID: To: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000f474a8060fc5caf2" Subject: Re: [PHP-DEV] Re: [RFC] [Vote] Resource to object conversion From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --000000000000f474a8060fc5caf2 Content-Type: text/plain; charset="UTF-8" Hello Mate, I've just closed the votes with the following outcomes: > - The primary vote for the described approach for converting resources to > objects was accepted unanimously (30 yes, 0 no) > - Primary stream resources are going to be migrated in a major version, > rather in any minor or major version (23 vs. 7 votes) > - Auxiliary stream resources are going to be migrated in a major version, > rather in any minor or major version (16 vs. 14 votes) > - The Process resource is going to be migrated in the next major version, > rather in the next minor or major version (15 vs. 14 votes) > - Resources of other extensions are going to be migrated in any minor or > major version, rather than in any major version (17 vs. 12 votes) > Congrats for this result :) I just had a look at the Symfony codebase and FYI we do use cast-to-integers for a few resources: - for curl - that's already supported by CurlHandle so this is seamless - for DBA, because dba_list() works by resourceid - for resources created by stream_socket_server() and stream_socket_accept() I only checked situations where the resource id is used as an index in an array, there might be some others (but not a lot, if any). It looks like we should implement the cast to int for these resource types at least. Cheers, Nicolas --000000000000f474a8060fc5caf2--