mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
20 lines
500 B
PHP
20 lines
500 B
PHP
--TEST--
|
|
ldap_first_attribute() - Testing ldap_first_attribute() 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);
|
|
try {
|
|
var_dump(ldap_first_attribute($link, $link));
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
ldap_first_attribute(): supplied resource is not a valid ldap result entry resource
|