com php-src: Using LDAP_CONTROL_MANAGEDSAIT constant in ldap tests instead of string oid: ext/ldap/tes ts/ldap_first_reference_basic.phpt
ext/ldap/tests/lda p_next_reference_basic.phpt ext/ldap/tests/ldap_par se_result_basic.phpt
| From: | Côme Bernigaud | Date: | Thu, 20 Jul 2017 10:37:44 +0000 |
| Subject: | com php-src: Using LDAP_CONTROL_MANAGEDSAIT constant in ldap tests instead of string oid: ext/ldap/tes ts/ldap_first_reference_basic.phpt ext/ldap/tests/lda p_next_reference_basic.phpt ext/ldap/tests/ldap_par se_result_basic.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98654@lists.php.net to get a copy of this message | ||
Commit: a3b42ea96bcf8e1574098a2f7a4a7f8d15f63b18
Author: Côme Chilliet <mcmic@php.net> Thu, 20 Jul 2017 12:34:43 +0200
Parents: 4fa70b0beb283b2a747cb0b571a97887b41b8818
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a3b42ea96bcf8e1574098a2f7a4a7f8d15f63b18
Log:
Using LDAP_CONTROL_MANAGEDSAIT constant in ldap tests instead of string oid
Changed paths:
M ext/ldap/tests/ldap_first_reference_basic.phpt
M ext/ldap/tests/ldap_next_reference_basic.phpt
M ext/ldap/tests/ldap_parse_result_basic.phpt
Diff:
diff --git a/ext/ldap/tests/ldap_first_reference_basic.phpt
b/ext/ldap/tests/ldap_first_reference_basic.phpt
index 37155a7..312a81c 100644
--- a/ext/ldap/tests/ldap_first_reference_basic.phpt
+++ b/ext/ldap/tests/ldap_first_reference_basic.phpt
@@ -30,7 +30,7 @@ include "connect.inc";
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
// Referral can only be removed with Manage DSA IT Control
-ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" =>
"2.16.840.1.113730.3.4.2")));
+ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" =>
LDAP_CONTROL_MANAGEDSAIT)));
ldap_delete($link, "cn=userref,$base");
remove_dummy_data($link, $base);
?>
diff --git a/ext/ldap/tests/ldap_next_reference_basic.phpt
b/ext/ldap/tests/ldap_next_reference_basic.phpt
index 18b135d..d92f69d 100644
--- a/ext/ldap/tests/ldap_next_reference_basic.phpt
+++ b/ext/ldap/tests/ldap_next_reference_basic.phpt
@@ -35,7 +35,7 @@ include "connect.inc";
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
// Referral can only be removed with Manage DSA IT Control
-ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" =>
"2.16..840.1.113730.3.4.2")));
+ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" =>
LDAP_CONTROL_MANAGEDSAIT)));
ldap_delete($link, "cn=userref,$base");
ldap_delete($link, "cn=userref2,$base");
remove_dummy_data($link, $base);
diff --git a/ext/ldap/tests/ldap_parse_result_basic.phpt
b/ext/ldap/tests/ldap_parse_result_basic.phpt
index ec88dff..a4c03ee 100644
--- a/ext/ldap/tests/ldap_parse_result_basic.phpt
+++ b/ext/ldap/tests/ldap_parse_result_basic.phpt
@@ -31,7 +31,7 @@ include "connect.inc";
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
// Referral can only be removed with Manage DSA IT Control
-ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" =>
"2.16.840.1.113730.3.4.2")));
+ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" =>
LDAP_CONTROL_MANAGEDSAIT)));
ldap_delete($link, "cn=userref,$base");
remove_dummy_data($link, $base);
?>