com php-src: Test ldap_exop_passwd with less paramete rs to be sure it works: ext/ldap/tests/ldap_exo p_passwd.phpt
| From: | Côme Bernigaud | Date: | Tue, 04 Jul 2017 08:17:41 +0000 |
| Subject: | com php-src: Test ldap_exop_passwd with less paramete rs to be sure it works: ext/ldap/tests/ldap_exo p_passwd.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98377@lists.php.net to get a copy of this message | ||
Commit: 209c9ba3847ae990ed51f3a7b9354879648fc464
Author: Côme Chilliet <mcmic@php.net> Tue, 4 Jul 2017 10:16:56 +0200
Parents: 3207747b9e03442fd43913f84cdd599ac244dfe8
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=209c9ba3847ae990ed51f3a7b9354879648fc464
Log:
Test ldap_exop_passwd with less parameters to be sure it works
Changed paths:
M ext/ldap/tests/ldap_exop_passwd.phpt
Diff:
diff --git a/ext/ldap/tests/ldap_exop_passwd..phpt b/ext/ldap/tests/ldap_exop_passwd.phpt
index e282678..2f0d4cb 100644
--- a/ext/ldap/tests/ldap_exop_passwd.phpt
+++ b/ext/ldap/tests/ldap_exop_passwd.phpt
@@ -17,6 +17,7 @@ insert_dummy_data($link, $base);
// ldap_exop_passwd(resource link [, string user [, string oldpw [, string newpw [, string
newpasswd ]]]])
var_dump(
$genpw = ldap_exop_passwd($link, "cn=userA,$base", "oops", ""),
+ $genpw = ldap_exop_passwd($link, "cn=userA,$base"),
test_bind($host, $port, "cn=userA,$base", $genpw, $protocol_version),
ldap_exop_passwd($link, "cn=userA,$base", $genpw, "newPassword"),
test_bind($host, $port, "cn=userA,$base", "newPassword", $protocol_version)
@@ -33,6 +34,7 @@ remove_dummy_data($link, $base);
?>
--EXPECTF--
string(%d) "%s"
+string(%d) "%s"
bool(true)
bool(true)
bool(true)