1--TEST--
2ldap_next_reference() - Testing ldap_next_reference() that should fail
3--CREDITS--
4Patrick Allaert <patrickallaert@php.net>
5# Belgian PHP Testfest 2009
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10require "connect.inc";
11
12$link = ldap_connect($host, $port);
13var_dump(ldap_next_reference($link));
14var_dump(ldap_next_reference($link, $link, "Additional data"));
15var_dump(ldap_next_reference($link, $link));
16?>
17===DONE===
18--EXPECTF--
19Warning: ldap_next_reference() expects exactly 2 parameters, 1 given in %s on line %d
20NULL
21
22Warning: ldap_next_reference() expects exactly 2 parameters, 3 given in %s on line %d
23NULL
24
25Warning: ldap_next_reference(): supplied resource is not a valid ldap result entry resource in %s on line %d
26bool(false)
27===DONE===
28