]> granicus.if.org Git - php/commitdiff
Deprecating ldap_sort the right way
authorCôme Bernigaud <mcmic@php.net>
Mon, 29 Jun 2015 12:31:20 +0000 (14:31 +0200)
committerCôme Bernigaud <mcmic@php.net>
Mon, 29 Jun 2015 12:31:20 +0000 (14:31 +0200)
ext/ldap/ldap.c
ext/ldap/tests/ldap_sort_basic.phpt
ext/ldap/tests/ldap_sort_error.phpt
ext/ldap/tests/ldap_sort_variation.phpt

index 5d47fb662407eb5b1eb3a9a743010d1877c0fc79..a7e7522607bd9fdddc55640e761c94cd32c88a83 100644 (file)
@@ -2001,8 +2001,6 @@ PHP_FUNCTION(ldap_sort)
        size_t sflen;
        zend_resource *le;
 
-    php_error_docref(NULL, E_DEPRECATED, "Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions");
-
        if (zend_parse_parameters(ZEND_NUM_ARGS(), "rrs", &link, &result, &sortfilter, &sflen) != SUCCESS) {
                RETURN_FALSE;
        }
@@ -3279,7 +3277,7 @@ const zend_function_entry ldap_functions[] = {
        PHP_FE(ldap_err2str,                                                            arginfo_ldap_err2str)
        PHP_FE(ldap_error,                                                                      arginfo_ldap_resource)
        PHP_FE(ldap_compare,                                                            arginfo_ldap_compare)
-       PHP_FE(ldap_sort,                                                                       arginfo_ldap_sort)
+       PHP_DEP_FE(ldap_sort,                                                                   arginfo_ldap_sort)
 
 #if (LDAP_API_VERSION > 2000) || HAVE_NSLDAP || HAVE_ORALDAP
        PHP_FE(ldap_rename,                                                                     arginfo_ldap_rename)
index 25fec5e18e1f0de1cc0a9024ac23fa3c2f1d64c8..e14381f8c7431e5baf488b5c498401aa2fab42bf 100644 (file)
@@ -51,7 +51,7 @@ ldap_delete($link, "cn=userE,$base");
 remove_dummy_data($link, $base);
 ?>
 --EXPECTF--
-Deprecated: ldap_sort(): Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions in %s.php on line %d
+Deprecated: Function ldap_sort() is deprecated in %s.php on line %d
 bool(true)
 array(7) {
   ["count"]=>
index 59d36323bb967b04d2b4158f5dbc85af8d0b4e55..26781638d1478cf73bb16d35a3ff449ce19fb68f 100644 (file)
@@ -18,27 +18,27 @@ var_dump(ldap_sort($link, $link, "sn"));
 ?>
 ===DONE===
 --EXPECTF--
-Deprecated: ldap_sort(): Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions in %s.php on line %d
+Deprecated: Function ldap_sort() is deprecated in %s.php on line %d
 
 Warning: ldap_sort() expects exactly 3 parameters, 1 given in %s on line %d
 bool(false)
 
-Deprecated: ldap_sort(): Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions in %s.php on line %d
+Deprecated: Function ldap_sort() is deprecated in %s.php on line %d
 
 Warning: ldap_sort() expects exactly 3 parameters, 2 given in %s on line %d
 bool(false)
 
-Deprecated: ldap_sort(): Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions in %s.php on line %d
+Deprecated: Function ldap_sort() is deprecated in %s.php on line %d
 
 Warning: ldap_sort() expects exactly 3 parameters, 4 given in %s on line %d
 bool(false)
 
-Deprecated: ldap_sort(): Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions in %s.php on line %d
+Deprecated: Function ldap_sort() is deprecated in %s.php on line %d
 
 Warning: ldap_sort() expects parameter 3 to be %binary_string_optional%, resource given in %s on line %d
 bool(false)
 
-Deprecated: ldap_sort(): Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions in %s.php on line %d
+Deprecated: Function ldap_sort() is deprecated in %s.php on line %d
 
 Warning: ldap_sort(): Supplied resource is not a valid ldap result resource in %s on line %d
 bool(false)
index 501f42940adb7253495f6106c81cb967138217be..bb121b63cb5751d3ddd570befc87f14f393f83dc 100644 (file)
@@ -51,7 +51,7 @@ ldap_delete($link, "cn=userE,$base");
 remove_dummy_data($link, $base);
 ?>
 --EXPECTF--
-Deprecated: ldap_sort(): Usage of ldap_sort is deprecated and will be removed in one of the next PHP-versions in %s.php on line %d
+Deprecated: Function ldap_sort() is deprecated in %s.php on line %d
 bool(true)
 array(7) {
   ["count"]=>