1--TEST-- 2ldap_error() - ldap_error() operation 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 10// Too few parameters 11var_dump(ldap_error()); 12 13// Too many parameters 14var_dump(ldap_error(null, null)); 15?> 16===DONE=== 17--EXPECTF-- 18Warning: ldap_error() expects exactly 1 parameter, 0 given in %s on line %d 19NULL 20 21Warning: ldap_error() expects exactly 1 parameter, 2 given in %s on line %d 22NULL 23===DONE=== 24