]> granicus.if.org Git - php/commitdiff
Fixed two errors in LDAP tests
authorCôme Bernigaud <mcmic@php.net>
Tue, 23 Jun 2015 14:09:56 +0000 (16:09 +0200)
committerCôme Bernigaud <mcmic@php.net>
Tue, 23 Jun 2015 14:11:12 +0000 (16:11 +0200)
ext/ldap/tests/ldap_delete_basic.phpt
ext/ldap/tests/ldap_get_entries_basic.phpt

index 17b8a22f155b73eef16db22726198b81707f8be1..84499f2a06ad603aef682efccb298d764c60b823 100644 (file)
@@ -32,7 +32,7 @@ require "connect.inc";
 
 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
 
-ldap_delete($link, "$base");
+ldap_delete($link, "dc=my-domain,$base");
 ?>
 --EXPECT--
 bool(true)
index 8ed479ee4c1e4869be13c9b45b0470480f7ce084..3efa818ee205a4565ac1031fd8fad8d13afa32d1 100644 (file)
@@ -57,7 +57,7 @@ array(2) {
     ["count"]=>
     int(2)
     ["dn"]=>
-    string(23) "o=test,dc=mcmic,dc=test"
+    string(%d) "o=test,%s"
   }
 }
 ===DONE===