]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-5.6'
authorDmitry Stogov <dmitry@zend.com>
Mon, 29 Jun 2015 15:14:14 +0000 (18:14 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 29 Jun 2015 15:14:14 +0000 (18:14 +0300)
* PHP-5.6:
  On Windows PHP may be restarted with different set of DSO extensions without SHM reset. This may make optimisation for entities from DSO extensions inconsistent.
  Putting back deprecated symbols for ldap_sort
  Removed deprecated function calls from ldap module
  Removed ifdefs of LDAP_API_FEATURE_X_OPENLDAP, fixed a warning

1  2 
ext/ldap/ldap.c

diff --cc ext/ldap/ldap.c
index a7e7522607bd9fdddc55640e761c94cd32c88a83,e2bcd1752298849a6cdee2d8998ea097323bef6e..401842e431ec2130679e178358d3472a7023a8ea
@@@ -1958,19 -1913,15 +1958,19 @@@ PHP_FUNCTION(ldap_compare
  {
        zval *link;
        char *dn, *attr, *value;
 -      int dn_len, attr_len, value_len;
 +      size_t dn_len, attr_len, value_len;
        ldap_linkdata *ld;
        int errno;
++      struct berval lvalue;
  
 -      if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsss", &link, &dn, &dn_len, &attr, &attr_len, &value, &value_len) != SUCCESS) {
 +      if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsss", &link, &dn, &dn_len, &attr, &attr_len, &value, &value_len) != SUCCESS) {
                return;
        }
  
 -      struct berval lvalue;
 +      if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) {
 +              RETURN_FALSE;
 +      }
 +
-       struct berval lvalue;
        lvalue.bv_val = value;
        lvalue.bv_len = value_len;