1--TEST--
2ldap_next_attribute() - Basic ldap_next_attribute test
3--CREDITS--
4Patrick Allaert <patrickallaert@php.net>
5# Belgian PHP Testfest 2009
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8<?php require_once('skipifbindfailure.inc'); ?>
9--FILE--
10<?php
11require "connect.inc";
12
13$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14insert_dummy_data($link);
15$result = ldap_search($link, "dc=my-domain,dc=com", "(objectclass=organization)");
16$entry = ldap_first_entry($link, $result);
17$attribute = ldap_first_attribute($link, $entry);
18var_dump(
19	ldap_next_attribute($link, $entry),
20	ldap_next_attribute($link, $entry),
21	ldap_next_attribute($link, $entry)
22);
23?>
24===DONE===
25--CLEAN--
26<?php
27include "connect.inc";
28
29$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
30remove_dummy_data($link);
31?>
32--EXPECTF--
33string(%d) "%s"
34string(%d) "%s"
35bool(false)
36===DONE===
37