From: Côme Chilliet Date: Tue, 27 Jun 2017 14:15:39 +0000 (+0200) Subject: Improved ldap_exop test to encode&decode a passwd EXOP to test sending/recieving... X-Git-Tag: php-7.2.0beta1~144^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5020325a6f5a05df32e1142809b57bed6522b52f;p=php Improved ldap_exop test to encode&decode a passwd EXOP to test sending/recieving data --- diff --git a/ext/ldap/tests/ldap_exop.phpt b/ext/ldap/tests/ldap_exop.phpt index 5f93a02093..015894415b 100644 --- a/ext/ldap/tests/ldap_exop.phpt +++ b/ext/ldap/tests/ldap_exop.phpt @@ -12,14 +12,30 @@ require "connect.inc"; $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); insert_dummy_data($link, $base); -function ber_encode($string) { - $null_padded_string = ''; - for($i = 0; $i ===DONE=== @@ -49,4 +71,10 @@ resource(%d) of type (ldap result) bool(true) string(%d) "dn:%s" string(0) "" +bool(true) +resource(%d) of type (ldap result) +bool(true) +string(%d) "%s" +string(0) "" +bool(true) ===DONE===