mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
28 lines
775 B
PHP
28 lines
775 B
PHP
--TEST--
|
|
ldap_first_reference() - Testing ldap_first_reference() that should fail
|
|
--CREDITS--
|
|
Patrick Allaert <patrickallaert@php.net>
|
|
# Belgian PHP Testfest 2009
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
require "connect.inc";
|
|
|
|
$link = ldap_connect($host, $port);
|
|
var_dump(ldap_first_reference($link));
|
|
var_dump(ldap_first_reference($link, $link, "Additional data"));
|
|
var_dump(ldap_first_reference($link, $link));
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Warning: ldap_first_reference() expects exactly 2 parameters, 1 given in %s on line %d
|
|
NULL
|
|
|
|
Warning: ldap_first_reference() expects exactly 2 parameters, 3 given in %s on line %d
|
|
NULL
|
|
|
|
Warning: ldap_first_reference(): supplied resource is not a valid ldap result resource in %s on line %d
|
|
bool(false)
|
|
===DONE===
|