Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129478 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 2445F1A00BC for ; Sat, 29 Nov 2025 19:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1764446393; bh=lzC48u+bjHp7UViXvdRURNFz9XSrE2T3DSI0EudEMlk=; h=From:Date:Subject:To:From; b=jyD/r+Hgz1/L4Liu1vLFbIV+3B+6pji/FISJ3/Jah03Aot7sQUI0MobE6Bbs/2rSM l0ucye2DtUQbZ/MPkijnOGcVk1gL/5QCzwm4j9Hjbpb6tGDyiUun4aKhfyQRtlW+pE TwM8QbLzD+RI5pbK1F/hARJGkX4/2LrFBnR8YDJ/bcb53mRF7+NTuHp5ZVk8WjhihS fPiqKFYyBrJM0eQiuSywFuEhUeFaYxE4nvHPYFKluxV21wtOubwJgbGKv2sbilja67 704HTKYbcfCmFifnXnOuybUeIwXPP7B45YRfYObJotQg6gQXhJYMvtHB4yRKVxH94c bV7zzVBwue84w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BCFBA18004C for ; Sat, 29 Nov 2025 19:59:52 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, 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-oo1-f44.google.com (mail-oo1-f44.google.com [209.85.161.44]) (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 ; Sat, 29 Nov 2025 19:59:49 +0000 (UTC) Received: by mail-oo1-f44.google.com with SMTP id 006d021491bc7-659400dab14so599955eaf.2 for ; Sat, 29 Nov 2025 11:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764446383; x=1765051183; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=lzC48u+bjHp7UViXvdRURNFz9XSrE2T3DSI0EudEMlk=; b=eNqoAwm3M05nkWLmJpemN+9M1kWXJX1a69vMZ0q0zZ1M5OcFsrJUPRhmaMMMKdbSFE Y4BXwbqTo8ACWqeU5XTpcNbK5LHQ+uOS6qVI1Qj3748QF4ogbEl6VKQN3UaBSrNrFJGW hN2kOIN30TtYPeZubTJbhmRzCpIhPaesdr7r9fpW8+PcvSA908DzXP2I2WIqHRVj1xsR chHBJNRUMuPq5UnuMcO9DKm6MFbebKIPkY07+lXtHGTAby2UMyB+JI6ktwQbp/fiEYmC 9WF4szwCTFC9/jBIRPnSi2wTDsTFKgXRXsJ06w4ZBlS29cczFjGYacIVLrnfiZUv2rxN NZOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764446383; x=1765051183; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lzC48u+bjHp7UViXvdRURNFz9XSrE2T3DSI0EudEMlk=; b=RshcKssHpntGR/ro9Us9Fcn7HqSa4StliL2nh2HKug6JzIPJN/LmEIILNKitX1kFEM xt0A6Arf0ytfzj5uZval+80IOeWICm/u1x/T4pREp+Ct9Cc/GIFWBIUf4uhn9+yqCQEu X5wq9yUtnVtBBl4mojlvasuQo4K4lianhU6qTX3OdwmYs12Tw5XJGHQLS4Kik+0H2ACb ruPYMREdVZbFVtphTSVPx4yLlWcFtLD8sC3+IZClKC/LTwT/Ku2/DXBjUI5vCX4P1Bb8 BbbJOhbZXvJMuixGLoKArIoISqw956c/cM39MgWmxoxmYo9az+0mAsIME8VI4w/H8ZJH ZdwQ== X-Gm-Message-State: AOJu0Yz0a/TaiK81//AtVq1xE4/YCQtd83kkY+QOVdMe59nBDM55RuzT MXK+bhubAH7ZRXIEplP3B08ngeArjLFVy6uoJut3+aqiu2HhnYw2Ma9FBVAgPn2PRHoVzL0ToLO 9UcQ3vOENG7r4rthpaMl40uK4lOhP5T94v2Ah X-Gm-Gg: ASbGncsKeom4Pv9KolY8c5io5Jd2gaDa+iGa1Gu+jvgX5L032LSY3x1z4gPA1skM4W6 H6WKoFhBfWqN3LnmEy4smue6eDf+mHNRwAksF25CfD9tJttI4q6LdPA1PJ0DR3s+UrlCwubk2L0 S0k5DJOBXFVAZoxJsr30snsFENlgJvL0lqIvjULO9o7kfQczsKxWqF6jMvAbBqy9ZIrmRkd36pE 6GqX/J6NG0fnyZZvDdLX3Cfz3d0ftg5GG7wWAXkrIUOu/LctgSjSfv6kY94Gk9D4DphTA== X-Google-Smtp-Source: AGHT+IGcMK8+Sq3hIIvbpHC78lNO6vhyIHUYJdIe0e9ldkYyGCM+BYwY+KdKRDU99xsTz/+nZ35dsbaTHS/7b++Fhjo= X-Received: by 2002:a05:6820:217:b0:657:5e6f:b9d7 with SMTP id 006d021491bc7-657bddb52dbmr8165303eaf.6.1764446383414; Sat, 29 Nov 2025 11:59:43 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Sat, 29 Nov 2025 19:59:32 +0000 X-Gm-Features: AWmQ_bmsiUi6c6IwmfR_dLuEws3ti6o_T-_smwKF8blfkcDUQZXtwjdvNPYfIQo Message-ID: Subject: [PHP-DEV] socket_addrinfo_lookup changes to get resolution failures errors To: PHP internals Content-Type: multipart/alternative; boundary="000000000000e89ff50644c12fc5" From: devnexen@gmail.com (David CARLIER) --000000000000e89ff50644c12fc5 Content-Type: text/plain; charset="UTF-8" Hi, A feature request about this had been created recently, https://github.com/php/php-src/issues/20532 and I do agree it would be an useful information to get rather just FALSE at the moment. The actual PR just return the error code but bukka raised a good point, why not just adding an optional parameter if you wish to know about this, changing towards this direction does not bother me I ll very likely lean towards it. As said however I do not think using socket_last_error() for this would be a good thing . Let me know your thoughts on this. Cheers ! --000000000000e89ff50644c12fc5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

A feature request about this had be= en created recently,=C2=A0https://github.com/php/php-src/issues/20532=C2=A0and I do agree = it would be an useful information to get rather just FALSE at the moment.= =C2=A0

The actual PR=C2=A0just return the error code but bukka rais= ed a good point, why not just adding an optional parameter if you wish to k= now about this, changing towards this direction does not bother me I ll ver= y likely lean towards it.

As said however I do not= think using socket_last_error() for this would be a good thing.

Let me know your thoughts on this.

Cheers !
--000000000000e89ff50644c12fc5--