1--TEST-- 2ldap_sort() - Testing ldap_sort() 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_sort($link)); 14var_dump(ldap_sort($link, $link)); 15var_dump(ldap_sort($link, $link, $link, $link)); 16var_dump(ldap_sort($link, $link, $link)); 17var_dump(ldap_sort($link, $link, "sn")); 18?> 19===DONE=== 20--EXPECTF-- 21Deprecated: Function ldap_sort() is deprecated in %s.php on line %d 22 23Warning: ldap_sort() expects exactly 3 parameters, 1 given in %s on line %d 24bool(false) 25 26Deprecated: Function ldap_sort() is deprecated in %s.php on line %d 27 28Warning: ldap_sort() expects exactly 3 parameters, 2 given in %s on line %d 29bool(false) 30 31Deprecated: Function ldap_sort() is deprecated in %s.php on line %d 32 33Warning: ldap_sort() expects exactly 3 parameters, 4 given in %s on line %d 34bool(false) 35 36Deprecated: Function ldap_sort() is deprecated in %s.php on line %d 37 38Warning: ldap_sort() expects parameter 3 to be %binary_string_optional%, resource given in %s on line %d 39bool(false) 40 41Deprecated: Function ldap_sort() is deprecated in %s.php on line %d 42 43Warning: ldap_sort(): Supplied resource is not a valid ldap result resource in %s on line %d 44bool(false) 45===DONE=== 46