com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/ldap/ldap.c
| From: | Xinchen Hui | Date: | Thu, 12 Nov 2015 06:20:03 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.6' into PHP-7.0: ext/ldap/ldap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89763@lists.php.net to get a copy of this message | ||
Commit: fc611a134b8307879864e2e823254a67e5542014
Author: Xinchen Hui <laruence@gmail.com> Thu, 12 Nov 2015 14:20:03 +0800
Parents: e4e54f33ceb4ecce33397c867b45862af85c1fda 391087ed280f86f144ffa5a2b72eeeda3c271743
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fc611a134b8307879864e2e823254a67e5542014
Log:
Merge branch 'PHP-5.6' into PHP-7.0
Changed paths:
MM ext/ldap/ldap.c
Diff:
diff --cc ext/ldap/ldap.c
index e0faf24,da8936c..f4dc087
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@@ -345,9 -349,12 +345,12 @@@ PHP_FUNCTION(ldap_connect
RETURN_FALSE;
}
#endif
+ if (!port) {
+ port = LDAP_PORT;
+ }
if (LDAPG(max_links) != -1 && LDAPG(num_links) >= LDAPG(max_links)) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open links (%ld)",
LDAPG(num_links));
+ php_error_docref(NULL, E_WARNING, "Too many open links (%pd)", LDAPG(num_links));
RETURN_FALSE;
}