1--TEST-- 2ldap_parse_reference() - ldap_parse_reference() operations 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$link = ldap_connect($host, $port); 12$refs = null; 13var_dump( 14 ldap_parse_reference($link, $link), 15 ldap_parse_reference($link, $link, $refs), 16 ldap_parse_reference($link, $refs, $refs, "Additional data"), 17 $refs 18); 19?> 20===DONE=== 21--EXPECTF-- 22Warning: ldap_parse_reference() expects exactly 3 parameters, 2 given in %s on line %d 23 24Warning: ldap_parse_reference(): supplied resource is not a valid ldap result entry resource in %s on line %d 25 26Warning: ldap_parse_reference() expects exactly 3 parameters, 4 given in %s on line %d 27NULL 28bool(false) 29NULL 30NULL 31===DONE=== 32