1--TEST-- 2ldap_next_entry() - Basic ldap_first_entry test 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($uri, $user, $passwd, $protocol_version); 15insert_dummy_data($link, $base); 16$result = ldap_list($link, "$base", "(objectClass=person)"); 17$entry = ldap_first_entry($link, $result); 18var_dump( 19 $entry = ldap_next_entry($link, $entry), 20 ldap_get_values($link, $entry, 'sn'), 21 $entry = ldap_next_entry($link, $entry) 22); 23?> 24--CLEAN-- 25<?php 26include "connect.inc"; 27 28$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version); 29remove_dummy_data($link, $base); 30?> 31--EXPECTF-- 32object(LDAP\ResultEntry)#%d (0) { 33} 34array(2) { 35 [0]=> 36 string(7) "testSN%d" 37 ["count"]=> 38 int(1) 39} 40bool(false) 41