Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111878 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83429 invoked from network); 17 Sep 2020 13:44:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Sep 2020 13:44:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9FEE31804AA for ; Thu, 17 Sep 2020 05:53:09 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from smtp-in.fusiondirectory.org (smtp-in.fusiondirectory.org [195.154.20.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 17 Sep 2020 05:53:08 -0700 (PDT) Received: from smtp-in.fusiondirectory.org (localhost.localdomain [127.0.0.1]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 6B7E31012C8 for ; Thu, 17 Sep 2020 14:53:06 +0200 (CEST) Received: from smtp.fusiondirectory.org (smtp.geekview.be [195.154.20.141]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 25DEE1012C5 for ; Thu, 17 Sep 2020 14:53:06 +0200 (CEST) Received: from mcmic-probook.opensides.be (63.120.199.77.rev.sfr.net [77.199.120.63]) by smtp.fusiondirectory.org (Postfix) with ESMTPSA id 0B8BB8BBEB for ; Thu, 17 Sep 2020 14:53:06 +0200 (CEST) Date: Thu, 17 Sep 2020 14:53:04 +0200 To: PHP internals Message-ID: <20200917145304.4a6cfe45@mcmic-probook.opensides.be> Organization: FusionDirectory X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Stubs in ext/ldap From: come.chilliet@fusiondirectory.org (=?UTF-8?B?Q8O0bWU=?= Chilliet) Hello, After playing with phpstan and seeing their stubs for some LDAP functions w= ere wrong, I noticed that documentation for LDAP functions and stubs in ext/ldap/ldap.stub.php differs. Especially in a lot of functions, the documentation states "string $dn =3D = NULL" but the stub states non-nullable string parameter. Also, the ldap.stub.php file contains a lot of "string $bind_rdn =3D UNKNOWN" in places where the documentations states =3D NULL. What does UNKOWN mean here? I would like to fix those conflicts. Basically my questions are: 1) What is the difference between s and S in zend_parse_parameters and how = do they behave for a NULL value? 2) What would changing =3D UNKNOWN to =3D NULL impact? 3) When a function like ldap_bind is called, is calling ldap_bind($link), a= nd ldap_bind($link, NULL) changing anything else than ZEND_NUM_ARGS? C=C3=B4me