1--TEST--
2ldap_err2str() - Incorrect usage of number to string conversion
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 args
11var_dump(ldap_err2str());
12
13// Too many args
14var_dump(ldap_err2str(1, "Additional data"));
15
16var_dump(ldap_err2str("weird"));
17?>
18===DONE===
19--EXPECTF--
20Warning: ldap_err2str() expects exactly 1 parameter, 0 given in %s on line %d
21NULL
22
23Warning: ldap_err2str() expects exactly 1 parameter, 2 given in %s on line %d
24NULL
25
26Warning: ldap_err2str() expects parameter 1 to be long, %unicode_string_optional% given in %s on line %d
27NULL
28===DONE===
29