1--TEST-- 2ldap_get_entries() - Basic modify operation 3--CREDITS-- 4Patrick Allaert <patrickallaert@php.net> 5# Belgian PHP Testfest 2009 6--EXTENSIONS-- 7ldap 8--SKIPIF-- 9<?php require_once('skipifbindfailure.inc'); ?> 10--FILE-- 11<?php 12require "connect.inc"; 13 14$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 15insert_dummy_data($link, $base); 16 17var_dump( 18 ldap_get_entries( 19 $link, 20 ldap_search($link, "$base", "(o=test)") 21 ) 22); 23?> 24--CLEAN-- 25<?php 26require "connect.inc"; 27 28$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 29remove_dummy_data($link, $base); 30?> 31--EXPECTF-- 32array(2) { 33 ["count"]=> 34 int(1) 35 [0]=> 36 array(6) { 37 ["objectclass"]=> 38 array(3) { 39 ["count"]=> 40 int(2) 41 [0]=> 42 string(3) "top" 43 [1]=> 44 string(12) "organization" 45 } 46 [0]=> 47 string(11) "objectclass" 48 ["o"]=> 49 array(2) { 50 ["count"]=> 51 int(1) 52 [0]=> 53 string(4) "test" 54 } 55 [1]=> 56 string(1) "o" 57 ["count"]=> 58 int(2) 59 ["dn"]=> 60 string(%d) "o=test,%s" 61 } 62} 63