diff options
| author | Côme Chilliet <mcmic@php.net> | 2017-07-20 12:34:43 +0200 |
|---|---|---|
| committer | Côme Chilliet <mcmic@php.net> | 2017-07-20 12:37:44 +0200 |
| commit | a3b42ea96bcf8e1574098a2f7a4a7f8d15f63b18 (patch) | |
| tree | ad84c0c5f2298d2f414507f4bacd6e98fb280d6a /ext | |
| parent | 4fa70b0beb283b2a747cb0b571a97887b41b8818 (diff) | |
| download | php-git-a3b42ea96bcf8e1574098a2f7a4a7f8d15f63b18.tar.gz | |
Using LDAP_CONTROL_MANAGEDSAIT constant in ldap tests instead of string oid
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/ldap/tests/ldap_first_reference_basic.phpt | 2 | ||||
| -rw-r--r-- | ext/ldap/tests/ldap_next_reference_basic.phpt | 2 | ||||
| -rw-r--r-- | ext/ldap/tests/ldap_parse_result_basic.phpt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/ldap/tests/ldap_first_reference_basic.phpt b/ext/ldap/tests/ldap_first_reference_basic.phpt index 37155a796c..312a81cc80 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 18b135da01..d92f69de0a 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 ec88dff377..a4c03ee197 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); ?> |
