mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-7.2'
* PHP-7.2: Removing client controls attribute from ldap_exop signature
This commit is contained in:
commit
26ccaa39b3
@ -3326,11 +3326,11 @@ PHP_FUNCTION(ldap_control_paged_result_response)
|
||||
|
||||
/* {{{ Extended operations, Pierangelo Masarati */
|
||||
#ifdef HAVE_LDAP_EXTENDED_OPERATION_S
|
||||
/* {{{ proto resource ldap_exop(resource link, string reqoid [, string reqdata [, array servercontrols [, array clientcontrols [, string &retdata [, string &retoid]]]]])
|
||||
/* {{{ proto resource ldap_exop(resource link, string reqoid [, string reqdata [, array servercontrols [, string &retdata [, string &retoid]]]])
|
||||
Extended operation */
|
||||
PHP_FUNCTION(ldap_exop)
|
||||
{
|
||||
zval *servercontrols, *clientcontrols;
|
||||
zval *servercontrols;
|
||||
zval *link, *retdata = NULL, *retoid = NULL;
|
||||
char *lretoid = NULL;
|
||||
zend_string *reqoid, *reqdata = NULL;
|
||||
@ -3339,7 +3339,7 @@ PHP_FUNCTION(ldap_exop)
|
||||
LDAPMessage *ldap_res;
|
||||
int rc, msgid;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rS|S!zzz/z/", &link, &reqoid, &reqdata, &servercontrols, &clientcontrols, &retdata, &retoid) != SUCCESS) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rS|S!zz/z/", &link, &reqoid, &reqdata, &servercontrols, &retdata, &retoid) != SUCCESS) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -3832,7 +3832,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_ldap_exop, 0, 0, 2)
|
||||
ZEND_ARG_INFO(0, reqoid)
|
||||
ZEND_ARG_INFO(0, reqdata)
|
||||
ZEND_ARG_INFO(0, servercontrols)
|
||||
ZEND_ARG_INFO(0, clientcontrols)
|
||||
ZEND_ARG_INFO(1, retdata)
|
||||
ZEND_ARG_INFO(1, retoid)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -36,10 +36,10 @@ function extract_genpw($retdata)
|
||||
|
||||
$userAPassword = "oops";
|
||||
|
||||
// ldap_exop(resource link, string reqoid [, string reqdata [, array servercontrols [, array clientcontrols [, string &retdata [, string &retoid]]]]])
|
||||
// ldap_exop(resource link, string reqoid [, string reqdata [, array servercontrols [, string &retdata [, string &retoid]]]])
|
||||
// bool ldap_parse_exop(resource link, resource result [, string &retdata [, string &retoid]])
|
||||
var_dump(
|
||||
ldap_exop($link, LDAP_EXOP_WHO_AM_I, NULL, NULL, NULL, $retdata, $retoid),
|
||||
ldap_exop($link, LDAP_EXOP_WHO_AM_I, NULL, NULL, $retdata, $retoid),
|
||||
$retdata,
|
||||
$retoid,
|
||||
$r = ldap_exop($link, LDAP_EXOP_WHO_AM_I),
|
||||
|
Loading…
Reference in New Issue
Block a user