Re: Stubs in ext/ldap

From: Date: Thu, 17 Sep 2020 13:20:40 +0000
Subject: Re: Stubs in ext/ldap
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-111880@lists.php.net to get a copy of this message
Hi Côme Chilliet and G. P. B., > Hello, > > After playing with phpstan and seeing their stubs for some LDAP functions > were >  wrong, I noticed that documentation for LDAP functions and stubs in >  ext/ldap/ldap.stub.php differs. Also see discussion in https://github.com/phan/phan/issues/4194 https://github.com/php/php-src/blob/master/ext/ldap/tests/ldap_sasl_bind_basic.phpt#L26 is a test that passes null to a string parameter of https://www.php.net/manual/en/function.ldap-sasl-bind.php . It seems like it silently gets coerced to the empty string when strict_types=0 and throws a TypeError when strict_types=1 Cheers, - Tyson

« previous php.internals (#111880) next »