mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
24 lines
512 B
PHP
24 lines
512 B
PHP
--TEST--
|
|
ldap_error() - ldap_error() operation that should fail
|
|
--CREDITS--
|
|
Patrick Allaert <patrickallaert@php.net>
|
|
# Belgian PHP Testfest 2009
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
// Too few parameters
|
|
var_dump(ldap_error());
|
|
|
|
// Too many parameters
|
|
var_dump(ldap_error(null, null));
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
Warning: ldap_error() expects exactly 1 parameter, 0 given in %s on line %d
|
|
NULL
|
|
|
|
Warning: ldap_error() expects exactly 1 parameter, 2 given in %s on line %d
|
|
NULL
|
|
===DONE===
|