xref: /PHP-7.1/ext/ldap/tests/ldap_escape_dn.phpt (revision 113213f0)
1--TEST--
2ldap_escape() test DN
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7
8$subject = 'foo=bar(baz)*';
9
10var_dump(ldap_escape($subject, null, LDAP_ESCAPE_DN));
11
12?>
13--EXPECT--
14string(15) "foo\3dbar(baz)*"
15