Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111880 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88263 invoked from network); 17 Sep 2020 14:12:05 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Sep 2020 14:12:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C6B45180537 for ; Thu, 17 Sep 2020 06:20:42 -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,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2040.outbound.protection.outlook.com [40.92.41.40]) (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 ; Thu, 17 Sep 2020 06:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i4ahzZg6lj6FHzdlaUtPJzYRgSdY1trRvV5G0jCr0pyb8mMX5mYIHYUM9Ee/Oc80ypBK6lO0mW8ZBoceBSqtKAiU/mwhTUJZl6XtTragSNrFQ1Z/015xLC3ZMnhw0SgulOgDoRiVxSoUhwdq4UywfSUCTRklOBWbgV1DkltZxBCMwAtaqsuYexgpqb5Q+PzkQL1B2Nrs/s1cnrn9oXP0PTjZAnf+Ks78XoRFcH67s4xl7p5sZDfWyBmu6kmu06YMD0WRidCBbRgvc85k+QOep35CvuVAmU2C45niBqOGIf8EjaEhAStMF1mr8NVyFNF6snwFqb4/RTe8d1elBDR+JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EMiEXO1Vq+lZQ7gF6cTAdw4mRvs0cFTsb59jmNi1iAU=; b=jYJ59aI7dmPgbM9p6cACP2qUOj9mlW5lrTjcmLkUQmKCEyNamehRNbQrGFPS6OjNkgWvUt26iBAojL1umaaGs3GcNLky3QpFK6KP7V4bM9C43/M8XUBNBj7yYdyYNsVLNM8wPTVq+D7G3hSBQA+4hoX0p90Ux4VjcU3lwx5JsCZ7vjO6uot8W1hCJ9cWWqp+NTAeL72mLANFPZXrooxAL/+Eiuv/QqkKJy/ZqBsMtjNqtg82wxgcZpVW6jhV6MRrFya2SgPiSD+wEvqmwbSeCHOAnI1BWw70hJkJs4lu5guHPzFFVc3YPSD8hAJ+cB8d0bZCODw0BcuABErzmdhNWg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EMiEXO1Vq+lZQ7gF6cTAdw4mRvs0cFTsb59jmNi1iAU=; b=dCqgM4JJqxyKVSiPRyUmJo15hAREdPaQtQE/LmMZ5pQ7z0hiXpylAGnDylWlRRNlxddlMfu6VerthkJpkIYvGiqQwAeAYeyoNIOPh8s5ii9JrOIy0VbBz4cyXINq5uB2x7/0esHQNnTAPTT41DhG53+LEfCS5Sbk8GxKdA+Geyad4R3WM3sGr1VKmkFRokUuZb+WzuF+5hpEW2PQpkdT98d1uQG5In8TV6dNpPglT7mJhQfAjZwApZl5ByZbLjDCQQ1aRU1w6k7zzq7kGcAPC3hb11mGFxzaafr/mfA5JWVBO5EKsT/T1stv3iAjY+/TXOEHNTEEu4qkAt4kQPm0uQ== Received: from MW2NAM10FT013.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e87::43) by MW2NAM10HT179.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e87::435) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Thu, 17 Sep 2020 13:20:40 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e87::50) by MW2NAM10FT013.mail.protection.outlook.com (2a01:111:e400:7e87::279) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15 via Frontend Transport; Thu, 17 Sep 2020 13:20:40 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f9d1:ed5b:8625:bfb4]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f9d1:ed5b:8625:bfb4%7]) with mapi id 15.20.3370.019; Thu, 17 Sep 2020 13:20:40 +0000 To: "G. P. B." , =?iso-8859-1?Q?C=F4me_Chilliet?= CC: PHP internals Thread-Topic: [PHP-DEV] Stubs in ext/ldap Thread-Index: AQHWjPGGyMGaunV6u0iSNr0V9ty6tqlsy+CAgAAEKEw= Date: Thu, 17 Sep 2020 13:20:40 +0000 Message-ID: References: <20200917145304.4a6cfe45@mcmic-probook.opensides.be>, In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:D6572EF2CA01C6E1107A894A0B1A1D5DE4765CED4CD5E912E8B96B5FBFD7B616;UpperCasedChecksum:8536AB0FBC3E96CAF24186345CCBFBF8E4D34EADF569958BF973DD62E70DD5E6;SizeAsReceived:7171;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [HgIDu8p8hXcEYccwFUzN8ZZ2E/oaNK5nClofyWTtLZIWdTcf+hJffFup01gDM8i+] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 91bffedf-6970-49cc-8982-08d85b0c7945 x-ms-traffictypediagnostic: MW2NAM10HT179: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5Cqjww63IqL2jwvBpXRhy5k2LTtxXTlM5NavrjK+Bn/RLipSryXQ/YClKkq1X7kwUF2s6u2xgjaS+JnVV0l4v68t5x9nvitCUEM3CuWxPA4JlRtOi5/as5LBbRZOqJIpAZWRA3E8UrT+R7QglrJvljdRsTq5Tin64HHfnKztgH7gI7YHTH0IQ4qYxmJ27mf754PlJeFNuk1TzWjz6itR6XY5XLpmSnt7dEWkCToJx2ewtCvmVGUAIamk+HDGFsvp x-ms-exchange-antispam-messagedata: A1a2UpVPSmpezBvWVpLHoN2fe+6QpQzssKS4fR0K+6+dBTb5m9ybEWIewb2ZbKwi7QWFFgYPxqpD4C+yENYJH8GLyXXf6b8mq+zS1KgCegG5C+tPB9/14qklJIP3j9lpKSDMH6E83ZSWeijxdAwQ90iuPu6VQtJ/CHT0siuGwtFnFvcyvN6FooJE6uZScx49SXFGp/ABCgsETnHoODnobQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: MW2NAM10FT013.eop-nam10.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 91bffedf-6970-49cc-8982-08d85b0c7945 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2020 13:20:40.4471 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2NAM10HT179 Subject: Re: [PHP-DEV] Stubs in ext/ldap From: tysonandre775@hotmail.com (tyson andre) Hi C=F4me Chilliet and G. P. B.,=0A= =0A= > Hello,=0A= >=0A= > After playing with phpstan and seeing their stubs for some LDAP functions= =0A= > were=0A= >=A0 wrong, I noticed that documentation for LDAP functions and stubs in=0A= >=A0 ext/ldap/ldap.stub.php differs.=0A= =0A= Also see discussion in https://github.com/phan/phan/issues/4194=0A= =0A= https://github.com/php/php-src/blob/master/ext/ldap/tests/ldap_sasl_bind_ba= sic.phpt#L26=0A= is a test that passes null to a string parameter=0A= of https://www.php.net/manual/en/function.ldap-sasl-bind.php . It seems lik= e it silently gets coerced to the empty string=0A= when strict_types=3D0 and throws a TypeError when strict_types=3D1=0A= =0A= Cheers,=0A= - Tyson=