Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119478 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46457 invoked from network); 7 Feb 2023 12:55:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Feb 2023 12:55:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 78F251804AC for ; Tue, 7 Feb 2023 04:55:59 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29169 217.70.176.0/20 X-Spam-Virus: No X-Envelope-From: Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 7 Feb 2023 04:55:58 -0800 (PST) Received: (Authenticated sender: come@chilliet.eu) by mail.gandi.net (Postfix) with ESMTPSA id 0C2111BF206 for ; Tue, 7 Feb 2023 12:55:56 +0000 (UTC) To: internals@lists.php.net Date: Tue, 07 Feb 2023 13:55:55 +0100 Message-ID: <5904972.lOV4Wx5bFT@come-prox15amd> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Deprecate ldap_connect with host and port as separate arguments From: come@chilliet.eu (=?ISO-8859-1?Q?C=F4me?= Chilliet) Le vendredi 27 janvier 2023, 10:00:35 CET Andreas Heigl a =C3=A9crit : > Hey Folks. >=20 > I think it would be a good idea to deprecate calling ldap_connect with 2= =20 > parameters host and port. Hello, My long term plan was to replace it by a constructor for the new \LDAP\Conn= ection class that only accepts the URI syntax. Which would also be better b= ecause ldap_connect is a really confusing name as it does not actually conn= ect to anything. But I=E2=80=99m unfamiliar with how to write object methods into PHP module= s, and I do not have much time to allocate to php-ldap. If you are interested into working on some OO methods for php-ldap classes,= I have a ton of ideas on how to make it awesome. C=C3=B4me