From 5020325a6f5a05df32e1142809b57bed6522b52f Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Tue, 27 Jun 2017 16:15:39 +0200 Subject: [PATCH] Improved ldap_exop test to encode&decode a passwd EXOP to test sending/recieving data --- ext/ldap/tests/ldap_exop.phpt | 40 +++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) 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=== -- 2.49.0