Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126229 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 1DD131A00BC for ; Wed, 29 Jan 2025 10:01:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1738144707; bh=T3Gda1H4TAaH4wmYppsSYPOuKwa+RByR00C71zEa5K8=; h=From:Subject:Date:References:To:In-Reply-To:From; b=VGwQRO85Nicz6Ys0i/YasZDL5Cixgs19L2MrcOAEOkHo7elchnSudVbuPRStfZ5pU FDQb39fGUBOwfi2oSHCh3KUKV4R/q2+b8Q2SD/YjMY6NBMw0xTbYy5upsvU0xFE9K1 0L5y5j3PFwn4A79Q8raXAfZABVuy4D4D1jvLOZBbU/havaKudSQQ0lbaj8jHcl6rZ5 dCfQXAQvRFynwjC8eXje64wDnTLmeHIEkZACSK0zwsavaR8pWJX+5ukZgmuw/6k+24 nmoJ27RgUWCGd/GndQ2YKrUc1Ob6/PPXqCGiTWCFf6bh/ZB6kY85cyiRxT+FbeAqHn aJyrvrsaLNc/g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2A47B180083 for ; Wed, 29 Jan 2025 09:58:26 +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 mail.gna.ch (mail.gna.ch [212.45.196.109]) (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 ; Wed, 29 Jan 2025 09:58:25 +0000 (UTC) Received: from smtpclient.apple (unknown [194.169.219.181]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id B22FA3A126B for ; Wed, 29 Jan 2025 11:01:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1738144871; bh=T3Gda1H4TAaH4wmYppsSYPOuKwa+RByR00C71zEa5K8=; h=From:Subject:Date:References:To:In-Reply-To; b=SYovyZtD+E1jThE8OB3+zvlcgAzAEnzd44t1vRQg7sbzQkHpuJI4JOhT3EbgnslBf yNlCRV+UEeYZE0r+QXMHM27SdHPfqB4OhQUxcGiyjSRFZw3ZohgFrmwOQ3A7b0Cqtc ajns/zbmk883+v5cnB9XoB/vXHlOXz1MN73EH9s0= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: Re: [PHP-DEV] ext/sockets: socket_getpeername/socket_getsockname BC Date: Wed, 29 Jan 2025 11:01:11 +0100 References: To: PHP internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3826.400.131.1.6) From: cschneid@cschneid.com (Christian Schneider) Am 29.01.2025 um 04:20 schrieb David CARLIER : > Working on this PR #17440, I wanted to ask if the BC from these two = calls were ok because : >=20 > Before > function socket_getsockname(Socket $socket, &$address, &$port =3D = null): bool {} >=20 > After > function socket_getsockname(Socket $socket, &$address, ?int = &$objint =3D null): bool {} >=20 > As it is no longer only used for port but also for. interface address = index in the case of AF_PACKET. Personally I would leave it at $port for two reasons: 1) BC break without a big benefit 2) I don't think $objint is a meaningful name While it might not be 100% accurate for AF_PACKET I think the concept of = a port is well enough established in the networking word and the more = common usage (AF_INET*) makes me think this inconsistency with AF_PACKET = is not a real problem. Regards, - Chris