summaryrefslogtreecommitdiff
path: root/ext/ldap/tests/ldap_err2str_error.phpt
blob: 103df75d941f5560e8c382842c952f28ae068b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
ldap_err2str() - Incorrect usage of number to string conversion
--CREDITS--
Patrick Allaert <patrickallaert@php.net>
# Belgian PHP Testfest 2009
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
// Too few args
var_dump(ldap_err2str());

// Too many args
var_dump(ldap_err2str(1, "Additional data"));
?>
===DONE===
--EXPECTF--
Warning: Wrong parameter count for ldap_err2str() in %s on line %d
NULL

Warning: Wrong parameter count for ldap_err2str() in %s on line %d
NULL
===DONE===