1--TEST-- 2ldap_next_attribute() - Basic ldap_next_attribute 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_search($link, "$base", "(cn=userC)"); 17$entry = ldap_first_entry($link, $result); 18$attribute = ldap_first_attribute($link, $entry); 19var_dump( 20 ldap_next_attribute($link, $entry), 21 ldap_next_attribute($link, $entry), 22 ldap_next_attribute($link, $entry), 23 ldap_next_attribute($link, $entry) 24); 25?> 26--CLEAN-- 27<?php 28include "connect.inc"; 29 30$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version); 31remove_dummy_data($link, $base); 32?> 33--EXPECTF-- 34string(%d) "%s" 35string(%d) "%s" 36string(%d) "%s" 37bool(false) 38