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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php