diff options
author | David Caldwell <david@galvanix.com> | 2017-05-25 00:41:12 +0000 |
---|---|---|
committer | David Caldwell <david@galvanix.com> | 2017-05-25 00:47:11 +0000 |
commit | d51b8f915fbbb008ce3b8c33e062b436b8f9c507 (patch) | |
tree | 48279faffa54a6f0c916505dbdf131d7ebdaa75b /ext/reflection/php_reflection.c | |
parent | 872e43d6e55e4af84681b259198ee688287cd40d (diff) | |
download | php-git-d51b8f915fbbb008ce3b8c33e062b436b8f9c507.tar.gz |
ext/ldap: Allow default host from ldap.conf to work.
This fixes an regression introduced in
e7af0fe1eb89e40671e86a588aa1b78607b85461. Previously, calling
ldap_connect() with no parameters would pass NULL to ldap_init(),
which causes it to use the default host specified in
/etc/ldap/ldap.conf (on Ubuntu).
When the code changed to use ldap_initialize(), it initialized a uri,
even if there were no parameters passed to ldap_connect(). Because of
this, there's no way to pass a NULL into ldap_initialize(), making it
impossible to use the default uri from ldap.conf.
This commit bypasses the uri creation when there is no host argument,
passing on a NULL to ldap_initialize() which restores the old PHP 5.5
behavior.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions