mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
26 lines
675 B
PHP
26 lines
675 B
PHP
--TEST--
|
|
ldap_count_entries() - Basic counting LDAP entries
|
|
--CREDITS--
|
|
Patrick Allaert <patrickallaert@php.net>
|
|
# Belgian PHP Testfest 2009
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
<?php require_once('skipifbindfailure.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
require "connect.inc";
|
|
|
|
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
|
|
insert_dummy_data($link, $base);
|
|
$result = ldap_search($link, "$base", "(objectclass=person)");
|
|
var_dump(ldap_count_entries($link, $result));
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
include "connect.inc";
|
|
|
|
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
|
|
remove_dummy_data($link, $base);
|
|
?>
|
|
--EXPECT--
|
|
int(3)
|